/**
 * Listeo Sipandpaint Frontend Styles
 * Event ticketing and service fee styles
 */

/* Booking Widget Integration Styles */
.sp-fee-breakdown {
    /* Our custom breakdown inside booking-estimated-cost */
}

.sp-fee-breakdown > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    line-height: 2.2; /* Increased line height for better readability */
}

.sp-fee-breakdown strong {
    color: #333;
    font-weight: 500;
}

/* Service fee row - same style as tickets row */
.sp-service-fee-row {
    /* No special styling - matches ticket row */
}

.sp-total-price {
    font-size: 16px !important;
    color: #f91942 !important;
    font-weight: 600 !important;
}

.sp-total-checkout {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 18px !important;
}

.sp-total-checkout strong {
    font-weight: 600 !important;
}

/* Hide the old separate fee info box if it exists */
.sp-fee-info {
    display: none !important;
}

/* Ticket Info Box */
.sp-ticket-info-box {
    background: #f7f7f7;
    border: 2px solid #f91942;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.sp-ticket-info-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #f91942;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Ticket Details */
.ticket-details {
    margin-top: 15px;
}

.ticket-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ticket-price .value {
    color: #f91942;
}

.service-fee-notice {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Ticket Availability */
.ticket-availability {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.ticket-availability.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.ticket-availability.sold-out {
    background: #ffebee;
    color: #c62828;
}

.sold-out-badge {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Availability Bar */
.availability-bar {
    background: #ddd;
    height: 10px;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.availability-progress {
    background: #f91942;
    height: 100%;
    transition: width 0.3s ease;
}

/* Ticket Selection */
.sp-ticket-selection {
    background: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
}

.sp-ticket-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ticket-quantity-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

/* Ticket Price Calculation */
.ticket-price-calculation {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.price-row.service-fee {
    color: #666;
    font-size: 13px;
}

.price-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 16px;
}

/* Service Fee Display */
.sp-service-fee-notice {
    background: #fff8e1;
    padding: 10px;
    border-left: 3px solid #ffc107;
    margin: 10px 0;
}

.sp-fee-display {
    margin: 10px 0;
    padding: 10px;
    background: #f7f7f7;
    border-radius: 4px;
}

/* Dashboard Ticket Counter */
.sp-tickets-counter {
    display: inline-block;
    font-size: 14px;
}

.sp-tickets-counter .progress-bar {
    width: 60px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
    display: inline-block;
}

.sp-tickets-counter .progress {
    height: 100%;
    background: #f91942;
    transition: width 0.3s ease;
}

.sp-tickets-counter.almost-full .progress {
    background: #ff9800;
}

.sp-tickets-counter.half-full .progress {
    background: #4CAF50;
}

/* Ticket Badge */
.sp-ticket-badge {
    background: linear-gradient(135deg, #f91942 0%, #ff6b6b 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 25px;
    display: inline-block;
    margin: 5px 0;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(249,25,66,0.2);
}

.sp-ticket-badge i {
    margin-right: 5px;
}

/* Ticket Confirmation */
.ticket-confirmation-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.ticket-confirmation-details h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #f91942;
    padding-bottom: 10px;
}

.ticket-confirmation-details ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.ticket-confirmation-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ticket-confirmation-details li:last-child {
    border-bottom: none;
}

/* Checkout Fee Notice */
.sp-checkout-fee-notice {
    background: #f7f7f7;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 3px solid #f91942;
}

.sp-checkout-fee-notice p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sp-ticket-info-box {
        padding: 15px;
    }
    
    .ticket-price {
        font-size: 20px;
    }
    
    .sp-ticket-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .price-row {
        font-size: 13px;
    }
    
    .sp-tickets-counter {
        font-size: 12px;
    }
}

/* Early Bird Pricing */
.early-bird-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

/* Sold Out Overlay */
.listing-sold-out {
    position: relative;
}

.listing-sold-out::after {
    content: 'SOLD OUT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: rgba(249, 25, 66, 0.9);
    color: white;
    padding: 10px 40px;
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 2px;
    z-index: 10;
}