/* EventON Tickets Frontend Styles */
.evotx_ticket_content {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px 0;
    background: #f9f9f9;
}

/* Quick Purchase Section (at top of event details) */
.evotx_quick_purchase_section {
    background: #f8f8f8;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(175, 76, 76, 0.3);
}

.evotx_quick_purchase_info {
    display: flex;
    flex-direction: column;
}

.evotx_quick_price {
    font-size: 1.4em;
    font-weight: bold;
    color: white;
}

.evotx_quick_label,
.evotx_quick_remaining {
    font-size: 0.9em;
    color: rgba(58, 58, 58, 0.9);
}

.evotx_quick_purchase_btn {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.evotx_quick_purchase_btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.evotx_ticket_info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.evotx_price .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #2d2d2d;
}

.evotx_price .label,
.evotx_availability .label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 2px;
}

.evotx_availability .seats-remaining {
    font-size: 1.1em;
    font-weight: bold;
    color: #46b450;
}

.evotx_add_to_cart_form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.evotx_quantity_selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.evotx_quantity_selector label {
    font-weight: 600;
    min-width: 60px;
}

.evotx_quantity_input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}

.evotx_purchase_buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.evotx_purchase_seat_btn {
    background: linear-gradient(135deg, #af2c2c 0%, #a04545 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(175, 76, 76, 0.3);
}

.evotx_purchase_seat_btn:hover {
    background: linear-gradient(135deg, #a04545 0%, #8b3d3d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(175, 76, 76, 0.4);
}

.evotx_purchase_seat_btn i {
    margin-right: 5px;
}

.evotx_view_ticket_btn {
    background: linear-gradient(135deg, #2ea2cc 0%, #1e8cbe 100%);
    color: white !important;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(46, 162, 204, 0.3);
}

.evotx_view_ticket_btn:hover {
    background: linear-gradient(135deg, #1e8cbe 0%, #186ba0 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 162, 204, 0.4);
}

.evotx_view_ticket_btn i {
    margin-right: 5px;
}

.evotx_sold_out {
    color: #dc3232;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    background: #ffeaea;
    border: 1px solid #dc3232;
    border-radius: 4px;
}

.evotx_sold_out .sold-out-message {
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.evotx_sold_out .sold-out-description {
    font-size: 0.9em;
    font-weight: normal;
    margin: 0;
    color: #a00;
}

/* QR Code Styles */
.evotx-qr-code {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.evotx-qr-code h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.evotx-qr-code img {
    max-width: 200px;
    height: auto;
}

/* Top Button Positioning */
.evotx_top_button {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 100 !important;
}

.evotx_top_button button {
    background: #636363 !important;
    color: white !important;
    border: 2px solid #ffffff !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.114) !important;
}

.evotx_top_button button:hover {
    background: #5c5c5c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.324) !important;
}

/* Event List Purchase Button Styles */
.eventon_list_event .desc_trig_outter {
    position: relative;
}

.evotx_purchase_button_container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.evotx_event_list_purchase {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 120px;
}

.evotx_price_display {
    margin-bottom: 5px;
}

.evotx_list_price {
    font-weight: bold;
    color: #2ea2cc;
    font-size: 14px;
}

.evotx_list_purchase_btn {
    background: linear-gradient(135deg, #af4c4c 0%, #a04545 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 1px 4px rgba(175, 76, 76, 0.3);
}

.evotx_list_purchase_btn:hover {
    background: linear-gradient(135deg, #a04545 0%, #8b3d3d 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(175, 76, 76, 0.4);
}

.evotx_list_purchase_btn i {
    margin-right: 3px;
}

.evotx_seats_info {
    margin-top: 3px;
    color: #666;
}

.evotx_sold_out_list {
    background: rgba(220, 50, 50, 0.9);
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.evotx_sold_out_badge {
    font-weight: bold;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .evotx_ticket_info {
        flex-direction: column;
        gap: 10px;
    }
    
    .evotx_purchase_buttons {
        flex-direction: column;
    }
    
    .evotx_purchase_seat_btn,
    .evotx_view_ticket_btn {
        min-width: 100%;
        justify-content: center;
    }
    
    .evotx_quick_purchase_section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .evotx_quick_purchase_btn {
        width: 100%;
    }

    .evotx_top_button {
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin: 10px 0 !important;
        text-align: center !important;
    }
    
    .evotx_top_button button {
        font-size: 12px !important;
        padding: 8px 16px !important;
        width: 100% !important;
        max-width: 250px !important;
    }
    
    .evotx_purchase_button_container {
        position: static;
        margin: 10px 0;
        text-align: center;
    }
    
    .evotx_event_list_purchase {
        display: inline-block;
        margin: 0 auto;
    }
    
    /* Make ticket sections mobile-friendly */
    .evo_metarow_tickets > div {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .evo_metarow_tickets button {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .evotx_top_button button {
        font-size: 11px !important;
        padding: 6px 12px !important;
        letter-spacing: 0.5px !important;
    }
}
