.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); }
}

/* Flatpickr Custom Styles */
.flatpickr-calendar {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
    /*font-size: 13px;*/
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #0066cc !important;
    border-color: #0066cc !important;
}

.flatpickr-day.inRange {
    background: #e6f0ff !important;
    border-color: #e6f0ff !important;
}

/* Custom styles for checkin-only and checkout-only dates */
.flatpickr-day.checkin-only {
    background-color: #e8fff0 !important;
    border-left: 2px solid #00cc66 !important;
}

.flatpickr-day.checkout-only {
    background-color: #fff5e6 !important;
    border-right: 2px solid #ff9933 !important;
}

/* Tooltip for special dates */
.flatpickr-day.checkin-only:hover::after,
.flatpickr-day.checkout-only:hover::after {
    content: attr(aria-label);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    /*font-size: 11px;*/
    white-space: nowrap;
    z-index: 100;
}

.flatpickr-day.checkin-only:hover::after {
    content: "Check-in Only";
}

.flatpickr-day.checkout-only:hover::after {
    content: "Check-out Only";
}

/* ===================================
   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;
}

/* ===================================
   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%;
    }
}