﻿/* ====================================
   TICKET PICKER LAYOUT
   Scoped to .tickets-container
   Consolidated from cinema.css (previously split across
   lines 421-541, 624-657, 830-880)
   ==================================== */

.tickets-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

    .tickets-container h1 {
        margin-bottom: 20px;
        color: #3D221E;
    }

    /* mods: dark header strip + cream rounded card, matching price-table look */
    .tickets-container .ticket-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 20px 0;
        background: #F5F1E6;
        color: #3D221E;
        border: none;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

        .tickets-container .ticket-table th,
        .tickets-container .ticket-table td {
            padding: 14px 16px;
            text-align: left;
            border: none;
            border-bottom: 1px solid rgba(61, 34, 30, 0.1);
            background: #F5F1E6;
        }

        .tickets-container .ticket-table tr:last-child td {
            border-bottom: none;
        }

        .tickets-container .ticket-table th {
            font-weight: 600;
            background: #EEE9DB;
            color: #3D221E;
            opacity: 0.6;
            text-transform: lowercase;
            font-size: 13px;
            border: none;
        }

        /* mods: ensure no alternating row colour - all body rows match */
        .tickets-container .ticket-table tbody tr,
        .tickets-container .ticket-table tbody tr:nth-child(even),
        .tickets-container .ticket-table tbody tr:nth-child(odd) {
            background: #F5F1E6;
        }

            .tickets-container .ticket-table tbody tr td {
                background: #F5F1E6;
            }

    .tickets-container .ticket-info-cell {
        min-width: 200px;
    }

    .tickets-container .ticket-name {
        font-weight: 700;
        font-size: 16px;
        margin-bottom: 0;
        color: #3D221E;
    }

    .tickets-container .ticket-price-cell {
        white-space: nowrap;
        width: 100px;
    }

    .tickets-container .ticket-cost {
        font-weight: 700;
        font-size: 16px;
        color: #3D221E;
    }

    .tickets-container .ticket-quantity-cell {
        width: 140px;
        text-align: center;
    }

    .tickets-container .ticket-quantity-control {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
    }

    .tickets-container .qty-btn {
        width: 32px;
        height: 32px;
        border: none;
        font-weight: bold;
        font-size: 16px;
        cursor: pointer;
        border-radius: 999px;
        transition: all 0.2s ease;
        padding: 0;
        flex-shrink: 0;
        background: #3D221E;
        color: #C0FFE0;
    }

        .tickets-container .qty-btn:hover:not(:disabled) {
            transform: scale(1.05);
        }

        .tickets-container .qty-btn:active:not(:disabled) {
            transform: scale(0.95);
        }

        .tickets-container .qty-btn:disabled {
            cursor: not-allowed;
            opacity: 0.5;
        }

    .tickets-container .qty-display {
        min-width: 40px;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
        color: #3D221E;
    }

    .tickets-container .ticket-subtotal-cell {
        white-space: nowrap;
        text-align: right;
        width: 80px;
    }

    .tickets-container .ticket-subtotal {
        font-weight: 700;
        color: #3D221E;
    }

    .tickets-container .validation-summary {
        padding: 20px;
        border-radius: 16px;
        border: none;
        background: #F5F1E6;
        color: #3D221E;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin: 20px 0;
        text-align: center;
    }

/* ====================================
   TICKET PICKER - MOBILE RESPONSIVENESS
   ==================================== */

@media (max-width: 860px) {
    .tickets-container {
        padding: 15px;
    }

        .tickets-container .ticket-name {
            font-size: 15px;
        }

        .tickets-container .ticket-price-cell,
        .tickets-container .ticket-subtotal-cell {
            width: 70px;
            font-size: 14px;
        }

        .tickets-container .ticket-quantity-cell {
            width: 120px;
        }

        .tickets-container .qty-btn {
            width: 28px;
            height: 28px;
            font-size: 14px;
        }

        .tickets-container .qty-display {
            min-width: 35px;
            font-size: 14px;
        }
}

@media (max-width: 480px) {
    .tickets-container {
        padding: 10px;
    }

        /* mods: tighter cell padding so the table fits narrow phone
           viewports without its right edge (subtotal column) clipping */
        .tickets-container .ticket-table th,
        .tickets-container .ticket-table td {
            padding: 10px 6px;
            font-size: 12px;
        }

        .tickets-container .ticket-name {
            font-size: 14px;
        }

        .tickets-container .ticket-info-cell {
            min-width: 110px;
        }

        .tickets-container .ticket-price-cell,
        .tickets-container .ticket-subtotal-cell {
            width: 52px;
            font-size: 12px;
        }

        .tickets-container .ticket-quantity-cell {
            width: 86px;
        }

        .tickets-container .qty-btn {
            width: 24px;
            height: 24px;
            font-size: 12px;
        }

        .tickets-container .qty-display {
            min-width: 24px;
            font-size: 12px;
        }
}
