/**
 * WC MP Booking Pro - Estilos CSS
 * Protegidos con alta especificidad para evitar conflictos con temas
 * Version: 1.0.42
 */

/* Wrapper principal - Alta especificidad */
.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 0px !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper * {
    box-sizing: border-box !important;
}

/* Contenedor del calendario Vue */
.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .mp-booking-pro-calendar-container {
    width: 100% !important;
    max-width: 100% !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .mp-booking-pro-vue-calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-header h4 {
    color: #ff6210 !important;
    margin: 0 0 15px 0 !important;
    text-align: left !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 0 !important;
    border: none !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-content {
    position: relative !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .loader-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10 !important;
    border-radius: 8px !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .loader {
    background: #ff6210 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 10px rgba(255, 98, 16, 0.3) !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-footer {
    margin-top: 15px !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-info {
    margin-top: 15px !important;
    padding: 10px !important;
    background: #f8f9fa !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    border-left: 4px solid #ff6210 !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-info p {
    margin: 5px 0 !important;
    color: #666 !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-info strong {
    color: #333 !important;
}

/* Estilos para VCalendar - Alta especificidad */
.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .v-calendar {
    font-family: inherit !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .v-calendar .vc-header {
    background-color: #ff6210 !important;
    color: white !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .v-calendar .vc-day {
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .v-calendar .vc-day:hover {
    background-color: #fff3cd !important;
    transform: scale(1.05) !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .v-calendar .vc-day.is-today {
    background-color: #ff6210 !important;
    color: white !important;
    font-weight: bold !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .v-calendar .vc-day.is-selected {
    background-color: #28a745 !important;
    color: white !important;
    font-weight: bold !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .v-calendar .vc-day.is-disabled {
    background-color: #f5f5f5 !important;
    color: #ccc !important;
    cursor: not-allowed !important;
}

.wc-bookings-booking-form {
    border: none !important;
    padding: 0px !important;
    margin: 0 0 1em !important;
}

.wc-bookings-booking-form fieldset {
    margin: 0 0 1em;
    line-height: 1.8em;
    border: none !important;
    padding: 0px !important;
}

/* Botón de limpiar selección */
.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-footer button {
    background: #ff6210 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: bold !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-footer button:hover {
    background: #e55a0e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(255, 98, 16, 0.3) !important;
}

/* Circuit Selector - Modern Radio Button Style */
.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-selector {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-top: 15px !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-option {
    display: flex !important;
    align-items: center !important;
    padding: 12px 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid #e9ecef !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-option:last-child {
    border-bottom: none !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-option:hover {
    background: #f1f3f4 !important;
    margin: 0 -10px !important;
    padding: 12px 10px !important;
    border-radius: 6px !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-option.selected {
    background: #f8fff9 !important;
    margin: 0 -10px !important;
    padding: 12px 10px !important;
    border-radius: 6px !important;
    border-left: 3px solid #28a745 !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .radio-button {
    margin-right: 12px !important;
    display: flex !important;
    align-items: center !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .radio-circle {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #ddd !important;
    border-radius: 50% !important;
    background: white !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .radio-circle.selected {
    border-color: #ff6210 !important;
    background: #ff6210 !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .radio-circle.selected::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: white !important;
    border-radius: 50% !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-info {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-name {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-spaces {
    text-align: right !important;
    color: #666 !important;
    font-size: 13px !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .spaces-count {
    color: #28a745 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Estilos para precios de circuitos */
.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-price {
    color: #ff6210 !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-free {
    color: #28a745 !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

/* Estilos para el nuevo diseño accordion de circuitos */
.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-selector-accordion {
    margin-top: 10px !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .accordion-header {
    transition: all 0.2s ease !important;
    background: rgb(255 255 255) !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #e9ecef !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .accordion-header:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Indicador visual cuando está expandido */
.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .accordion-header.expanded {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 98, 16, 0.2) !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .accordion-header svg {
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
}

@keyframes mpTicketsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .accordion-content {
    animation: mpTicketsFadeIn 0.3s ease-in-out !important;
    background: rgb(255 255 255) !important;
    padding: 10px 15px !important;
    margin-top: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card {
    transition: all 0.2s ease !important;
    background: rgb(255 255 255) !important;
    padding: 12px 15px !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    border: 1px solid #e9ecef !important;
    display: flex !important;
    align-items: center !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card.selected {
    border-color: #ff6210 !important;
    box-shadow: 0 2px 15px rgba(255, 98, 16, 0.2) !important;
}

.mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card:last-child {
    margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .mp-booking-pro-vue-calendar {
        padding: 10px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-header h4 {
        font-size: 16px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .calendar-info {
        font-size: 11px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-selector {
        padding: 10px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-option {
        padding: 10px 0 !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-name {
        font-size: 13px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .spaces-count {
        font-size: 13px !important;
    }
    
    /* Mantener layout horizontal en tablets */
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 10px 12px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card .circuit-info {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card .circuit-spaces {
        flex: 0 0 auto !important;
        text-align: right !important;
        font-size: 12px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .accordion-header {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .accordion-content {
        padding: 8px 12px !important;
    }
}

/* Solo para móviles muy pequeños cambiar a columna */
@media (max-width: 480px) {
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card .circuit-info {
        width: 100% !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .circuit-card .circuit-spaces {
        width: 100% !important;
        text-align: left !important;
        font-size: 11px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .accordion-header {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
    
    .mp-booking-pro-wrapper.mp-booking-pro-calendar-wrapper .accordion-content {
        padding: 6px 10px !important;
    }
}
