/**
 * MWB Bookings for WooCommerce - Metronic 8 Styling
 * Pet Carers Marketplace
 */

/* ===================================
   Booking Product Single Page
   =================================== */

/* Booking Form Container */
.mwb-booking-form,
.wps_ubo_booking_section {
    margin-top: 2rem;
}

/* Booking Calendar */
.mwb-booking-calendar,
.wps_ubo_calendar_section {
    background: #F9F9F9;
    border-radius: 0.625rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Calendar Header */
.mwb-booking-calendar .calendar-header,
.wps_ubo_calendar_section .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    border-radius: 0.625rem;
    margin-bottom: 1rem;
}

/* Calendar Navigation Buttons */
.mwb-booking-calendar .calendar-nav button,
.wps_ubo_calendar_section .prev-month,
.wps_ubo_calendar_section .next-month {
    background: #009EF7;
    color: white;
    border: none;
    border-radius: 0.425rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mwb-booking-calendar .calendar-nav button:hover,
.wps_ubo_calendar_section .prev-month:hover,
.wps_ubo_calendar_section .next-month:hover {
    background: #0095e8;
    transform: translateY(-2px);
}

/* Calendar Days */
.mwb-booking-calendar table,
.wps_ubo_calendar_section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
}

.mwb-booking-calendar th,
.wps_ubo_calendar_section th {
    background: #fff;
    color: #181C32;
    font-weight: 600;
    padding: 0.75rem;
    text-align: center;
    border-radius: 0.425rem;
}

.mwb-booking-calendar td,
.wps_ubo_calendar_section td {
    text-align: center;
    padding: 0;
}

.mwb-booking-calendar td button,
.mwb-booking-calendar td span,
.wps_ubo_calendar_section td button,
.wps_ubo_calendar_section td span {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: #fff;
    border-radius: 0.425rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #181C32;
}

/* Available Date */
.mwb-booking-calendar td button:not([disabled]):hover,
.wps_ubo_calendar_section td button:not([disabled]):hover {
    background: #E8FFF3;
    color: #50CD89;
    transform: scale(1.05);
}

/* Selected Date */
.mwb-booking-calendar td button.selected,
.wps_ubo_calendar_section td button.selected {
    background: #009EF7;
    color: white;
    font-weight: 600;
}

/* Disabled/Unavailable Date */
.mwb-booking-calendar td button[disabled],
.wps_ubo_calendar_section td button[disabled] {
    background: #F1F1F2;
    color: #A1A5B7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Current Date */
.mwb-booking-calendar td button.today,
.wps_ubo_calendar_section td button.today {
    border: 2px solid #009EF7;
}

/* Time Slots Section */
.mwb-booking-time-slots,
.wps_ubo_time_slots_section {
    margin-top: 1.5rem;
}

.mwb-booking-time-slots h4,
.wps_ubo_time_slots_section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #181C32;
    margin-bottom: 1rem;
}

/* Time Slot Grid */
.mwb-time-slot-grid,
.wps_ubo_time_slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

/* Time Slot Button */
.mwb-time-slot,
.wps_ubo_time_slot {
    background: #fff;
    border: 2px solid #E4E6EF;
    border-radius: 0.625rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #181C32;
}

.mwb-time-slot:hover,
.wps_ubo_time_slot:hover {
    border-color: #009EF7;
    background: #F1FAFF;
    transform: translateY(-2px);
}

.mwb-time-slot.selected,
.wps_ubo_time_slot.selected {
    background: #009EF7;
    border-color: #009EF7;
    color: white;
}

.mwb-time-slot.unavailable,
.wps_ubo_time_slot.unavailable {
    background: #F1F1F2;
    border-color: #E4E6EF;
    color: #A1A5B7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Booking Form Fields */
.mwb-booking-field,
.wps_ubo_booking_field {
    margin-bottom: 1.5rem;
}

.mwb-booking-field label,
.wps_ubo_booking_field label {
    display: block;
    font-weight: 600;
    color: #181C32;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.mwb-booking-field input,
.mwb-booking-field select,
.mwb-booking-field textarea,
.wps_ubo_booking_field input,
.wps_ubo_booking_field select,
.wps_ubo_booking_field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E4E6EF;
    border-radius: 0.625rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.mwb-booking-field input:focus,
.mwb-booking-field select:focus,
.mwb-booking-field textarea:focus,
.wps_ubo_booking_field input:focus,
.wps_ubo_booking_field select:focus,
.wps_ubo_booking_field textarea:focus {
    border-color: #009EF7;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.25);
}

/* Booking Summary */
.mwb-booking-summary,
.wps_ubo_booking_summary {
    background: #F9F9F9;
    border-radius: 0.625rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.mwb-booking-summary h4,
.wps_ubo_booking_summary h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #181C32;
    margin-bottom: 1rem;
}

.mwb-booking-summary-item,
.wps_ubo_summary_item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E4E6EF;
}

.mwb-booking-summary-item:last-child,
.wps_ubo_summary_item:last-child {
    border-bottom: none;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #E4E6EF;
}

.mwb-booking-summary-label,
.wps_ubo_summary_label {
    font-weight: 600;
    color: #7E8299;
}

.mwb-booking-summary-value,
.wps_ubo_summary_value {
    font-weight: 700;
    color: #181C32;
}

.mwb-booking-total,
.wps_ubo_total {
    font-size: 1.5rem;
    color: #009EF7;
}

/* Add to Cart Button */
.single_add_to_cart_button {
    background: #009EF7;
    color: white;
    border: none;
    border-radius: 0.625rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.5rem;
}

.single_add_to_cart_button:hover {
    background: #0095e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 158, 247, 0.3);
}

.single_add_to_cart_button:disabled {
    background: #E4E6EF;
    color: #A1A5B7;
    cursor: not-allowed;
    transform: none;
}

/* Booking Product Badge */
.product-type-mwb_booking .onsale {
    background: #009EF7;
}

/* ===================================
   Booking Products in Store Grid
   =================================== */

/* Booking Product Card */
/* .product-type-mwb_booking .card {
    position: relative;
}

.product-type-mwb_booking .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #009EF7 0%, #50CD89 100%);
    border-radius: 0.625rem 0.625rem 0 0;
}

/* Booking Badge on Card
.product-type-mwb_booking .card-body::before {
    content: 'Booking';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #009EF7;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.425rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
} */

/* ===================================
   Booking Calendar Widget
   =================================== */

.mwb-booking-calendar-widget,
.dokan-booking-calendar-widget {
    background: #fff;
    border-radius: 0.625rem;
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.05);
}

.mwb-booking-calendar-widget h3,
.dokan-booking-calendar-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #181C32;
    margin-bottom: 1.5rem;
}

/* ===================================
   Booking Dashboard/Admin
   =================================== */

/* Booking Status Badges */
.booking-status {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.425rem;
    font-size: 0.825rem;
    font-weight: 600;
}

.booking-status.pending {
    background: #FFF8DD;
    color: #F1BC00;
}

.booking-status.confirmed {
    background: #E8FFF3;
    color: #50CD89;
}

.booking-status.cancelled {
    background: #FFF5F8;
    color: #F1416C;
}

.booking-status.completed {
    background: #F1FAFF;
    color: #009EF7;
}

/* Booking List Table */
.mwb-bookings-table,
.wps_ubo_bookings_table {
    width: 100%;
    border-collapse: collapse;
}

.mwb-bookings-table th,
.wps_ubo_bookings_table th {
    background: #F9F9F9;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #181C32;
    border-bottom: 2px solid #E4E6EF;
}

.mwb-bookings-table td,
.wps_ubo_bookings_table td {
    padding: 1rem;
    border-bottom: 1px solid #E4E6EF;
}

.mwb-bookings-table tr:hover,
.wps_ubo_bookings_table tr:hover {
    background: #F9F9F9;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 767px) {
    .mwb-time-slot-grid,
    .wps_ubo_time_slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .mwb-booking-calendar td button,
    .mwb-booking-calendar td span,
    .wps_ubo_calendar_section td button,
    .wps_ubo_calendar_section td span {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .single_add_to_cart_button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===================================
   Loading State
   =================================== */

.mwb-booking-loading,
.wps_ubo_loading {
    position: relative;
}

.mwb-booking-loading::after,
.wps_ubo_loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #E4E6EF;
    border-top-color: #009EF7;
    border-radius: 50%;
    animation: mwb-spinner 0.6s linear infinite;
}

@keyframes mwb-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Error Messages
   =================================== */

.mwb-booking-error,
.wps_ubo_error {
    background: #FFF5F8;
    border-left: 4px solid #F1416C;
    color: #F1416C;
    padding: 1rem 1.5rem;
    border-radius: 0.625rem;
    margin: 1rem 0;
}

/* ===================================
   Success Messages
   =================================== */

.mwb-booking-success,
.wps_ubo_success {
    background: #E8FFF3;
    border-left: 4px solid #50CD89;
    color: #50CD89;
    padding: 1rem 1.5rem;
    border-radius: 0.625rem;
    margin: 1rem 0;
}

/* ===================================
   Info Messages
   =================================== */

.mwb-booking-info,
.wps_ubo_info {
    background: #F1FAFF;
    border-left: 4px solid #009EF7;
    color: #009EF7;
    padding: 1rem 1.5rem;
    border-radius: 0.625rem;
    margin: 1rem 0;
}

/* ===================================
   Booking Duration Selector
   =================================== */

.mwb-duration-selector,
.wps_ubo_duration {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.mwb-duration-selector button,
.wps_ubo_duration button {
    background: #fff;
    border: 2px solid #E4E6EF;
    border-radius: 0.625rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    color: #181C32;
}

.mwb-duration-selector button:hover,
.wps_ubo_duration button:hover {
    border-color: #009EF7;
    background: #F1FAFF;
}

.mwb-duration-value,
.wps_ubo_duration_value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #181C32;
    min-width: 60px;
    text-align: center;
}
