.booking-redefined-rate-checker {
    max-width: 100%;
    margin: 0 auto;
    /*padding: 15px;*/
}

/* Date Picker Styles */
.booking-redefined-rate-checker .date-picker-container {
    margin-bottom: 15px;
}

.booking-redefined-rate-checker .date-range-input {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /*font-size: 14px;*/
    text-align: left;
    cursor: pointer;
    background-color: #fff;
}

/* Guest Selectors Row - matching the screenshot */
.booking-redefined-rate-checker .guest-selectors-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

/* Select Wrapper Styles */
.booking-redefined-rate-checker .select-wrapper {
    position: relative;
    flex: 1;
}

.booking-redefined-rate-checker .select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    /*font-size: 14px;*/
}

.booking-redefined-rate-checker .select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

/* Rate Results Styles */
.booking-redefined-rate-checker .rate-results {
    background-color: white;
    border-radius: 6px;
    /*padding: 15px;*/
    /*margin-top: 15px;*/
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.booking-redefined-rate-checker .rate-total {
    margin-bottom: 15px;
    text-align: center;
}

.booking-redefined-rate-checker .rate-total h3 {
    /*font-size: 18px;*/
    margin: 0 0 5px 0;
}

.booking-redefined-rate-checker .rate-includes {
    color: #666;
    /*font-size: 12px;*/
    margin: 0;
}

.booking-redefined-rate-checker .rate-breakdown {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-bottom: 15px;
}

.booking-redefined-rate-checker .rate-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    /*font-size: 13px;*/
}

.booking-redefined-rate-checker .rate-item-label {
    color: #555;
}

.booking-redefined-rate-checker .rate-item-value {
    font-weight: 500;
}

/* Discount Code Styles */
.booking-redefined-rate-checker .rate-discount {
    display: flex;
    gap: 8px;
    /*margin-bottom: 15px;*/
}

.booking-redefined-rate-checker .rate-discount input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /*font-size: 13px;*/
}

.booking-redefined-rate-checker .apply-discount {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    /*font-size: 13px;*/
    font-weight: 500;
}

.booking-redefined-rate-checker .apply-discount:hover {
    background-color: #e5e5e5;
}

/* Action Buttons Styles */
.booking-redefined-rate-checker .rate-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.booking-redefined-rate-checker .rate-actions button {
    width: 100%;
    margin: 0;
}

/*.booking-redefined-rate-checker .button-book-now {*/
/*    text-align: center;*/
/*    color: white;*/
/*    font-weight: bold;*/
/*    padding: 10px 15px;*/
/*    border: none;*/
/*    border-radius: 4px;*/
/*    !*font-size: 14px;*!*/
/*}*/

/*.booking-redefined-rate-checker .button-book-now:hover {*/
/*    background-color: #0055aa;*/
/*}*/

.booking-redefined-rate-checker .button-contact {
    text-align: center;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    /*font-size: 14px;*/
}

.booking-redefined-rate-checker .button-contact:hover {
    background-color: #f0f0f0;
}

/* Error Message Styles */
.booking-redefined-rate-checker .rate-error {
    background-color: #fff8f8;
    border: 1px solid #ffdddd;
    border-radius: 4px;
    padding: 12px;
    margin-top: 15px;
    color: #d33;
    /*font-size: 13px;*/
}

/* Loading State */
.booking-redefined-rate-checker.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    border-radius: 4px;
}

.booking-redefined-rate-checker.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Flatpickr Custom Styles - Add to your rate-checker.css */
.flatpickr-weekdaycontainer .flatpickr-weekday {
    background: none !important;
}
.flatpickr-calendar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.flatpickr-day {
    border-radius: 0 !important;
    margin: 1px !important;
    transition: all 0.2s ease !important;
}

.flatpickr-day:hover {
    background: #f5f5f5 !important;
    border-color: #ddd !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    /*background: #2196F3 !important;*/
    /*border-color: #2196F3 !important;*/
    border: none !important;
    color: var(--primary-dark) !important;
    font-weight: 600 !important;
}


/*.flatpickr-day.inRange::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: -2px; !* Cover the grey gap on left *!*/
/*    right: -2px; !* Cover the grey gap on right *!*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    background: var(--primary-light);*/
/*    z-index: -1;*/
/*}*/

/* Enhanced styles for checkin-only and checkout-only dates */
.flatpickr-day.checkin-only {
    position: relative !important;
    background: linear-gradient(-45deg,  white 50%, var(--neutral-ultra-light, #9E9E9E) 50%) !important;
    border: none !important;
}

.flatpickr-day.checkin-only:hover {
    background: linear-gradient(45deg, var(--neutral-ultra-light, #9E9E9E) 50%, var(--primary-light, #e3f2fd) 50%) !important;
    border: none !important;
}

.flatpickr-day.checkout-only {
    position: relative !important;
    background: linear-gradient(-45deg, var(--neutral-ultra-light, #9E9E9E) 50%, white 50%) !important;
    border: none !important;
}

.flatpickr-day.checkout-only:hover {
    background: linear-gradient(-45deg, var(--neutral-ultra-light, #9E9E9E) 50%, var(--primary-light, #e3f2fd) 50%) !important;
    border: none !important;
}

.flatpickr-day.inRange {
    background: var(--primary-light) !important;
    box-shadow: -5px 0 0 var(--primary-light), 5px 0 0 var(--primary-light) !important;
    color: var(--tertiary-dark) !important;
    border: none !important;
}

/* Disabled dates styling */
.flatpickr-day.flatpickr-disabled {
    background-color: var(--neutral-ultra-light) !important;
    color: #ccc !important;
    border: none !important;
    position: relative !important;
    box-shadow: -5px 0 0 var(--neutral-ultra-light), 5px 0 0 var(--neutral-ultra-light) !important;
}

.flatpickr-day.flatpickr-disabled::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    /*background: repeating-linear-gradient(*/
    /*        45deg,*/
    /*        transparent,*/
    /*        transparent 2px,*/
    /*        rgba(204, 204, 204, 0.3) 2px,*/
    /*        rgba(204, 204, 204, 0.3) 4px*/
    /*);*/
    z-index: 1;
    pointer-events: none;
}

.flatpickr-day.flatpickr-disabled span {
    position: relative;
    z-index: 2;
}

.flatpickr-day.flatpickr-disabled:hover::after {
    content: "Not Available";
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(158, 158, 158, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Triangle arrow for tooltips */
.flatpickr-day.checkin-only:hover::before,
.flatpickr-day.checkout-only:hover::before,
.flatpickr-day.flatpickr-disabled:hover::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    z-index: 99;
}

.flatpickr-day.checkin-only:hover {
    /*background: linear-gradient(45deg, var(--neutral-medium, #9E9E9E) 50%, var(--primary-light, #e3f2fd) 50%) !important;*/
    background: linear-gradient(-45deg, var(--primary-light) 50%, var(--neutral-medium) 50%) !important;
    border-color: var(--primary-light, #e3f2fd) !important;
}

.flatpickr-day.checkout-only:hover {
    background: linear-gradient(-45deg, var(--neutral-medium) 50%, var(--primary-light, #e3f2fd) 50%) !important;
    border-color: var(--primary-light, #e3f2fd) !important;
}

.flatpickr-day.flatpickr-disabled:hover::before {
    border-top: 5px solid rgba(158, 158, 158, 0.9);
}.flatpickr-day.startRange, .flatpickr-day.startRange.checkin-only

.flatpickr-day.startRange, .flatpickr-day.startRange.checkin-only {
    background: linear-gradient(-45deg, var(--primary-light) 50%, var(--neutral-light) 50%) !important;
    border-radius: 50px 0 0 50px !important;
    font-weight: 600 !important;
}

.flatpickr-day.endRange {
    background: linear-gradient(-45deg, var(--neutral-light, #9E9E9E) 50%, var(--primary-light) 50%) !important;
    border-radius: 0 50px 50px 0 !important;
    font-weight: 600 !important;
}



/* Calendar header styling */
.flatpickr-month {
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.flatpickr-current-month {
    font-weight: 600 !important;
    color: #333 !important;
}

.flatpickr-weekday {
    background: #f5f5f5 !important;
    color: #666 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* Navigation arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
    color: #666 !important;
    transition: color 0.2s ease !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: #2196F3 !important;
}

/* Today indicator */
.flatpickr-day.today {
    border-color: #2196F3 !important;
    font-weight: 600 !important;
}

.flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {
    background: rgba(33, 150, 243, 0.1) !important;
    color: #1976D2 !important;
}

/* Animation for date selection */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    animation: dateSelect 0.2s ease !important;
}

@keyframes dateSelect {
    0% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .flatpickr-calendar {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    }

    .flatpickr-day {
        height: 36px !important;
        line-height: 36px !important;
        font-size: 14px !important;
    }

    .flatpickr-day.checkin-only:hover::after,
    .flatpickr-day.checkout-only:hover::after,
    .flatpickr-day.flatpickr-disabled:hover::after {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}

/* ===================================
   MOBILE RATE CHECKER STYLES
   Add this to the END of your existing rate-checker.css file
   ================================ */

/* Mobile Rate Checker Styles */
.booking-redefined-rate-checker-mobile {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Mobile version inherits all styles from the desktop version */
.booking-redefined-rate-checker-mobile .date-picker-container {
    margin-bottom: 15px;
}

.booking-redefined-rate-checker-mobile .date-range-input {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    background-color: #fff;
}

/* Guest Selectors Row - matching the screenshot */
.booking-redefined-rate-checker-mobile .guest-selectors-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

/* Select Wrapper Styles */
.booking-redefined-rate-checker-mobile .select-wrapper {
    position: relative;
    flex: 1;
}

.booking-redefined-rate-checker-mobile .select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.booking-redefined-rate-checker-mobile .select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

/* Rate Results Styles */
.booking-redefined-rate-checker-mobile .rate-results {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.booking-redefined-rate-checker-mobile .rate-total {
    margin-bottom: 15px;
    text-align: center;
}

.booking-redefined-rate-checker-mobile .rate-total h3 {
    margin: 0 0 5px 0;
}

.booking-redefined-rate-checker-mobile .rate-includes {
    color: #666;
    margin: 0;
}

.booking-redefined-rate-checker-mobile .rate-breakdown {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-bottom: 15px;
}

.booking-redefined-rate-checker-mobile .rate-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.booking-redefined-rate-checker-mobile .rate-item-label {
    color: #555;
}

.booking-redefined-rate-checker-mobile .rate-item-value {
    font-weight: 500;
}

/* Discount Code Styles */
.booking-redefined-rate-checker-mobile .rate-discount {
    display: flex;
    gap: 8px;
}

.booking-redefined-rate-checker-mobile .rate-discount input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.booking-redefined-rate-checker-mobile .apply-discount {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.booking-redefined-rate-checker-mobile .apply-discount:hover {
    background-color: #e5e5e5;
}

/* Action Buttons Styles */
.booking-redefined-rate-checker-mobile .rate-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.booking-redefined-rate-checker-mobile .rate-actions button {
    width: 100%;
    margin: 0;
}

.booking-redefined-rate-checker-mobile .button-book-now {
    text-align: center;
    background-color: #0066cc;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
}

.booking-redefined-rate-checker-mobile .button-book-now:hover {
    background-color: #0055aa;
}

.booking-redefined-rate-checker-mobile .button-contact {
    text-align: center;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
}

.booking-redefined-rate-checker-mobile .button-contact:hover {
    background-color: #f0f0f0;
}

/* Error Message Styles */
.booking-redefined-rate-checker-mobile .rate-error {
    background-color: #fff8f8;
    border: 1px solid #ffdddd;
    border-radius: 4px;
    padding: 12px;
    margin-top: 15px;
    color: #d33;
}

/* Loading State */
.booking-redefined-rate-checker-mobile.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    border-radius: 4px;
}

.booking-redefined-rate-checker-mobile.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

/* Collapsible Fee Breakdown Styles - Add to rate-checker.css */

/* View Fees Toggle Button */
.booking-redefined-rate-checker .view-fees-toggle,
.booking-redefined-rate-checker-mobile .view-fees-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.booking-redefined-rate-checker .view-fees-toggle:hover,
.booking-redefined-rate-checker-mobile .view-fees-toggle:hover {
    color: #333;
    background-color: #f9f9f9;
}

.booking-redefined-rate-checker .view-fees-toggle.expanded,
.booking-redefined-rate-checker-mobile .view-fees-toggle.expanded {
    color: #333;
    font-weight: 600;
}

/* Chevron Icon */
.booking-redefined-rate-checker .view-fees-toggle .chevron-icon,
.booking-redefined-rate-checker-mobile .view-fees-toggle .chevron-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.booking-redefined-rate-checker .view-fees-toggle.expanded .chevron-icon,
.booking-redefined-rate-checker-mobile .view-fees-toggle.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* Fee Breakdown Collapsible Styles */
.booking-redefined-rate-checker .fee-breakdown-collapsible,
.booking-redefined-rate-checker-mobile .fee-breakdown-collapsible {
    overflow: hidden;
    transition: all 0.3s ease;
}

.booking-redefined-rate-checker .fee-breakdown-expanded,
.booking-redefined-rate-checker-mobile .fee-breakdown-expanded {
    animation: slideDown 0.3s ease;
}

/* Smooth expand/collapse animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 10px;
    }
}

/* Adjust rate breakdown borders when collapsible */
.booking-redefined-rate-checker .fee-breakdown-collapsible,
.booking-redefined-rate-checker-mobile .fee-breakdown-collapsible {
    border-top: none; /* Remove top border since button provides visual separation */
}

/* Update rate total margins when breakdown is collapsible */
.booking-redefined-rate-checker .view-fees-toggle + .rate-breakdown + .rate-discount,
.booking-redefined-rate-checker-mobile .view-fees-toggle + .rate-breakdown + .rate-discount {
    margin-top: 15px;
}

/* Ensure proper spacing between total and view fees button */
.booking-redefined-rate-checker .rate-total + .view-fees-toggle,
.booking-redefined-rate-checker-mobile .rate-total + .view-fees-toggle {
    margin-top: 0;
}

/* Promo Status Message Styles */
.booking-redefined-rate-checker .promo-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    display: block;
    width: 100%;
}

.booking-redefined-rate-checker .promo-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.booking-redefined-rate-checker .promo-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ensure the discount section has proper spacing */
.booking-redefined-rate-checker .rate-discount {
    margin-bottom: 0; /* Remove any bottom margin */
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .booking-redefined-rate-checker-mobile .view-fees-toggle {
        padding: 10px 12px;
        font-size: 14px;
    }

    .booking-redefined-rate-checker-mobile .view-fees-toggle .chevron-icon {
        font-size: 12px;
    }
}

/* Alternative button style (if you prefer a more prominent button) */
/*
.booking-redefined-rate-checker .view-fees-toggle,
.booking-redefined-rate-checker-mobile .view-fees-toggle {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
}

.booking-redefined-rate-checker .view-fees-toggle:hover,
.booking-redefined-rate-checker-mobile .view-fees-toggle:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}
*/

/* ===================================
   RESPONSIVE BREAKPOINTS
   ================================ */

/* Desktop and large tablets (>1024px) - Show sidebar, hide mobile */
@media (min-width: 1025px) {
    .booking-redefined-rate-checker {
        display: block;
    }

    .booking-redefined-rate-checker-mobile {
        display: none;
    }
}

/* Mobile and small tablets (≤1024px) - Show mobile, hide sidebar */
@media (max-width: 1024px) {
    .booking-redefined-rate-checker {
        display: none;
    }

    .booking-redefined-rate-checker-mobile {
        display: block;
    }
}

/* Mobile specific optimizations */
@media (max-width: 768px) {
    .booking-redefined-rate-checker-mobile {
        /* Ensure full width on mobile */
        width: 100%;
        max-width: none;
    }

    .booking-redefined-rate-checker-mobile .guest-selectors-row {
        /* Stack guest selectors on very small screens if needed */
        gap: 8px;
    }

    .booking-redefined-rate-checker-mobile .rate-discount {
        /* Stack discount code elements on small screens */
        flex-direction: column;
        gap: 8px;
    }

    .booking-redefined-rate-checker-mobile .apply-discount {
        width: 100%;
    }

    .booking-redefined-rate-checker-mobile .date-range-input {
        /* Larger touch targets on mobile */
        padding: 10px 12px;
    }

    .booking-redefined-rate-checker-mobile .select-wrapper select {
        /* Larger touch targets on mobile */
        padding: 10px 12px;
    }

    .booking-redefined-rate-checker-mobile .button-book-now,
    .booking-redefined-rate-checker-mobile .button-contact {
        /* Larger touch targets for buttons */
        padding: 12px 15px;
    }
}

/* Extra small devices (≤480px) */
@media (max-width: 480px) {
    .booking-redefined-rate-checker-mobile .guest-selectors-row {
        /* Force stacking on very small screens */
        flex-direction: column;
        gap: 10px;
    }

    .booking-redefined-rate-checker-mobile .select-wrapper {
        flex: none;
        width: 100%;
    }
}