/* Severall Friends Tickets - Frontend Styles */

.sfst-ticket-section {
    margin: 30px 0;
    padding: 25px 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.sfst-heading {
    font-size: 22px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333;
}

/* Test mode banner */
.sfst-test-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Ticket table */
.sfst-ticket-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.sfst-ticket-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.sfst-ticket-table tbody tr {
    border-bottom: 1px solid #eee;
}

.sfst-ticket-table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
}

.sfst-col-price,
.sfst-col-qty,
.sfst-col-subtotal {
    text-align: center;
    width: 100px;
}

.sfst-col-subtotal {
    text-align: right;
    font-weight: 600;
}

.sfst-ticket-name {
    font-size: 16px;
    font-weight: 500;
}

.sfst-remaining {
    display: block;
    font-size: 12px;
    color: #d63638;
    margin-top: 3px;
}

.sfst-sold-out-row {
    opacity: 0.5;
}

.sfst-sold-out-label {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* Quantity dropdown */
.sfst-qty-select {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
}

.sfst-qty-select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Checkout bar */
.sfst-checkout-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid #333;
}

.sfst-total {
    font-size: 18px;
    color: #333;
}

.sfst-total strong {
    font-size: 22px;
}

.sfst-checkout-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sfst-checkout-btn:hover:not(:disabled) {
    background: #135e96;
}

.sfst-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sfst-checkout-btn.sfst-loading {
    position: relative;
    color: transparent;
}

.sfst-checkout-btn.sfst-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: sfst-spin 0.6s linear infinite;
}

@keyframes sfst-spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.sfst-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
}

.sfst-message.sfst-error {
    background: #fef0f0;
    border: 1px solid #d63638;
    color: #d63638;
}

.sfst-message.sfst-success {
    background: #f0faf0;
    border: 1px solid #22863a;
    color: #22863a;
}

/* Secure note */
.sfst-secure-note {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 15px;
}

.sfst-lock-icon {
    font-size: 14px;
}

/* Notice messages (not started, ended, sold out) */
.sfst-notice {
    padding: 15px;
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
    color: #555;
    font-size: 15px;
}

.sfst-notice.sfst-sold-out {
    border-left-color: #d63638;
}

.sfst-remaining-notice {
    background: #fff8e5;
    border: 1px solid #f0c33c;
    color: #8a6d3b;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .sfst-ticket-section {
        padding: 15px;
    }

    .sfst-ticket-table thead {
        display: none;
    }

    .sfst-ticket-table tbody tr {
        display: block;
        padding: 12px 0;
    }

    .sfst-ticket-table tbody td {
        display: block;
        padding: 4px 0;
        text-align: left;
    }

    .sfst-col-price::before {
        content: 'Price: ';
        font-weight: 500;
    }

    .sfst-col-qty {
        text-align: left;
    }

    .sfst-col-subtotal {
        text-align: left;
        font-size: 15px;
    }

    .sfst-col-subtotal::before {
        content: 'Subtotal: ';
        font-weight: 400;
    }

    .sfst-checkout-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .sfst-checkout-btn {
        width: 100%;
    }
}
