/**
 * BIN Ticketing Frontend Styles
 *
 * These are base styles that can be overridden by the theme.
 * The theme should provide the actual styling using its design tokens.
 */

/* Ticket Selection Page */
.bin-ticket-selection {
    max-width: 800px;
    margin: 0 auto;
}

.bin-ticket-type-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.bin-ticket-type-card.selected {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.bin-ticket-type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.bin-ticket-type-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.bin-ticket-type-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.bin-ticket-type-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    font-weight: normal;
    margin-right: 0.5rem;
}

.bin-ticket-type-description {
    color: #666;
    margin-bottom: 1rem;
}

.bin-ticket-type-availability {
    font-size: 0.875rem;
    color: #666;
}

/* Quantity Selector */
.bin-ticket-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bin-ticket-quantity button {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 1.25rem;
}

.bin-ticket-quantity button:hover {
    background: #f5f5f5;
}

.bin-ticket-quantity button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bin-ticket-quantity input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 1rem;
}

/* Member Badge */
.bin-member-ticket-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Checkout Summary */
.bin-checkout-summary {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bin-checkout-summary h3 {
    margin-top: 0;
}

.bin-checkout-line-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.bin-checkout-line-item:last-child {
    border-bottom: none;
}

.bin-checkout-total {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
}

.bin-checkout-discount {
    color: #2e7d32;
}

/* Coupon message — styling for .bin-coupon-form / .bin-coupon-form input /
 * .bin-coupon-form button / .bin-coupon-form button:hover has moved to the
 * theme's BEM module (ticket-checkout.scss → .ticket-checkout__coupon-*).
 * The .bin-coupon-form class itself stays in the HTML as a JS hook for
 * checkout.js; only the CSS rules are removed here. */

.bin-coupon-message {
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.bin-coupon-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.bin-coupon-message.error {
    background: #ffebee;
    color: #c62828;
}

/* Payment Form */
.bin-payment-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
}

#card-element {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

#card-errors {
    color: #c62828;
    margin-bottom: 1rem;
}

/* Confirmation Page */
.bin-confirmation {
    text-align: center;
    padding: 2rem;
}

.bin-confirmation-icon {
    font-size: 4rem;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.bin-confirmation h1 {
    color: #2e7d32;
}

.bin-ticket-details {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: left;
}

.bin-ticket-code {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    margin: 1rem 0;
}

/* Sold Out Badge */
.bin-sold-out-badge {
    display: inline-block;
    background: #ffebee;
    color: #c62828;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Bulk Purchase Notice */
.bin-bulk-notice {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

.bin-bulk-notice a {
    color: #1565c0;
}

/* My Tickets Page */
.bin-my-tickets {
    max-width: 800px;
}

.bin-ticket-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
}

.bin-ticket-card-event {
    flex: 1;
}

.bin-ticket-card-event h3 {
    margin: 0 0 0.5rem 0;
}

.bin-ticket-card-meta {
    color: #666;
    font-size: 0.875rem;
}

.bin-ticket-card-code {
    font-family: monospace;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .bin-ticket-card {
        flex-direction: column;
    }

    .bin-ticket-type-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}
