/* Container Wrapper */
.apple-tickets-wrapper {
    max-width: 720px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
}

/* Style Tickera's native ticket tables */
.apple-tickets-wrapper table.tc_tickets_table,
.apple-tickets-wrapper table.tc_wb_tickets_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fbfbfd !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

/* Headers */
.apple-tickets-wrapper table tr th {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    font-weight: 600 !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #d2d2d7 !important;
    text-align: left !important;
    font-size: 0.9rem !important;
}

/* Table Rows */
.apple-tickets-wrapper table tr td {
    padding: 16px 18px !important;
    border-bottom: 1px solid #e5e5ea !important;
    vertical-align: middle !important;
    color: #1d1d1f !important;
    font-size: 0.95rem !important;
}

.apple-tickets-wrapper table tr:last-child td {
    border-bottom: none !important;
}

/* Quantity inputs */
.apple-tickets-wrapper input[type="number"],
.apple-tickets-wrapper input.qty {
    width: 60px !important;
    height: 38px !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    background: #fff !important;
    outline: none !important;
}

.apple-tickets-wrapper input[type="number"]:focus,
.apple-tickets-wrapper input.qty:focus {
    border-color: #0071e3 !important;
}

/* Clean Apple-Blue Buttons */
.apple-tickets-wrapper input[type="submit"],
.apple-tickets-wrapper button,
.apple-tickets-wrapper a.tc_button {
    background-color: #0071e3 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 980px !important;
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.apple-tickets-wrapper input[type="submit"]:hover,
.apple-tickets-wrapper button:hover,
.apple-tickets-wrapper a.tc_button:hover {
    background-color: #0077ed !important;
    transform: scale(1.02);
}

/* Responsive Table layout for Mobile */
@media (max-width: 600px) {
    .apple-tickets-wrapper table, 
    .apple-tickets-wrapper tbody, 
    .apple-tickets-wrapper tr, 
    .apple-tickets-wrapper td {
        display: block !important;
        width: 100% !important;
    }
    
    .apple-tickets-wrapper thead {
        display: none !important;
    }

    .apple-tickets-wrapper tr {
        border-bottom: 1px solid #d2d2d7 !important;
        padding: 12px 0 !important;
    }

    .apple-tickets-wrapper tr td {
        border: none !important;
        padding: 8px 16px !important;
    }
}