/* ======================================================== */
/* == Mr. Barber Booking System - Modern Template CSS == */
/* ======================================================== */

/* Keep booking modal interactions isolated from theme hover/focus styles. */
.modal-wrapper a,
.modal-wrapper button,
.modal-wrapper input,
.modal-wrapper select,
.modal-wrapper textarea {
    font: inherit;
}

.modal-wrapper a,
.modal-wrapper a:visited,
.modal-wrapper a:hover,
.modal-wrapper a:focus,
.modal-wrapper a:focus-visible {
    color: inherit;
    text-decoration: none !important;
}

.modal-wrapper button:focus,
.modal-wrapper button:focus-visible,
.modal-wrapper input:focus,
.modal-wrapper input:focus-visible,
.modal-wrapper select:focus,
.modal-wrapper select:focus-visible,
.modal-wrapper textarea:focus,
.modal-wrapper textarea:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16) !important;
}

.modal-wrapper .next-btn,
.modal-wrapper .submit-btn,
.modal-wrapper .open-booking-modal {
    color: #fff !important;
    background: #111 !important;
    border-color: #111 !important;
}

.modal-wrapper .next-btn:hover,
.modal-wrapper .next-btn:focus,
.modal-wrapper .submit-btn:hover,
.modal-wrapper .submit-btn:focus,
.modal-wrapper .open-booking-modal:hover,
.modal-wrapper .open-booking-modal:focus {
    color: #fff !important;
    background: #000 !important;
    border-color: #000 !important;
}

.modal-wrapper .prev-btn,
.modal-wrapper .review-edit-btn {
    color: #e5e7eb !important;
    border-color: #3f3f46 !important;
}

.modal-wrapper .prev-btn:hover,
.modal-wrapper .prev-btn:focus,
.modal-wrapper .review-edit-btn:hover,
.modal-wrapper .review-edit-btn:focus {
    color: #ffffff !important;
    border-color: #666 !important;
}

/* --- Modal Base --- */
.modal-wrapper { 
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.85); 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(5px);
}

.modal-wrapper.show { 
    display: flex !important; 
}

.modal-content {
background-color: #1a1a1a;
    width: 100%;
    max-width: 999px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 600px;
    min-height: 600px;
}

/* --- Close Button --- */
.close-button { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    color: #fff; 
    font-size: 24px; 
    cursor: pointer; 
    z-index: 100; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 2px solid rgba(255,255,255,0.2); 
    border-radius: 50% !important; 
    transition: all 0.3s ease;
}
.close-button:hover { 
    background: #fff; 
    color: #000; 
    border-color: #fff; 
}

/* --- Main Layout (Modern Template) --- */
.mrb-template-modern {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent double scrollbars */
}

/* Left Side: Steps Wrapper */
.booking-steps-wrapper {
    flex: 1;
    background-color: #1a1a1a;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* Step Container */
.booking-step {
    display: none;
    flex-direction: column;
    height: 100%;
    animation: fadeIn 0.4s ease-in-out;
}

.booking-step.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollable Content Area */
.step-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    padding-bottom: 20px;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}

.step-content-scroll::-webkit-scrollbar {
    width: 8px;
}
.step-content-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.step-content-scroll::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

/* Sticky Footer Buttons */
.step-buttons {
    flex-shrink: 0;
    padding: 20px 40px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    position: sticky;
    bottom: 0;
}

/* Right Side: Summary */
#booking-summary {
    width: 350px;
    background-color: #111;
    padding: 40px 30px;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow-y: auto;
}

/* --- Typography & Headings --- */
.booking-step h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 700;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

#booking-summary h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fff;
    text-align: left;
}

/* --- Barber Grid --- */
.barber-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.barber-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #222;
}

.barber-item:hover {
    border-color: #666;
    transform: translateY(-5px);
}

.barber-item.selected {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

.barber-img-container {
    width: 100%;
    height: 100%;
}

.barber-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.barber-item:hover .barber-img-container img {
    transform: scale(1.1);
}

.barber-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.barber-availability-status {
    margin: 8px 0 4px;
    border: 1px solid #32343a;
    border-radius: 12px;
    background: linear-gradient(145deg, #1f2024 0%, #18191d 100%);
    overflow: hidden;
}

.barber-availability-content {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.barber-availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid #3a3c42;
    background: #222429;
    color: #f3f4f6;
}

.barber-availability-badge.is-open {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
    width: 100%;
    border-radius: 10px;
    padding: 11px 12px;
    line-height: 1.45;
    font-size: 13px;
}

.barber-availability-badge.is-closed {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    width: 100%;
    border-radius: 10px;
    padding: 11px 12px;
    line-height: 1.45;
    font-size: 13px;
}

.barber-availability-note {
    border: 1px solid #33363d;
    border-radius: 10px;
    background: #202228;
    padding: 11px 12px;
    color: #e5e7eb;
    line-height: 1.45;
    font-size: 13px;
}

.barber-availability-skeleton {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.barber-availability-skeleton[hidden],
.barber-availability-content[hidden] {
    display: none !important;
}

.mrb-skeleton-line {
    height: 12px;
    border-radius: 7px;
    background: linear-gradient(90deg, #2a2d34 25%, #363a43 37%, #2a2d34 63%);
    background-size: 400% 100%;
    animation: mrbShimmer 1.2s ease infinite;
}

.mrb-skeleton-line.mrb-skeleton-line-sm {
    width: 42%;
}

.mrb-skeleton-line.mrb-skeleton-line-lg {
    width: 82%;
}

@keyframes mrbShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* --- Service List --- */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-list.is-loading .service-item {
    display: none !important;
}

.mrb-services-loading {
    display: grid;
    gap: 12px;
}

.mrb-services-loading-line {
    height: 78px;
    border-radius: 10px;
    border: 1px solid #343842;
    background: linear-gradient(90deg, #23262d 20%, #2e333d 45%, #23262d 70%);
    background-size: 220% 100%;
    animation: mrb-service-shimmer 1.15s linear infinite;
}

.mrb-services-loading-line.mrb-services-loading-line-sm {
    height: 64px;
    width: 86%;
}

@keyframes mrb-service-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.service-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-item:hover {
    background: #333;
    border-color: #555;
}

.service-item.selected {
    background: #333;
    border-color: #fff;
}

.service-check {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #666;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s ease;
}

.service-item.selected .service-check {
    background: #fff;
    border-color: #fff;
    color: #111;
}

.service-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3A3A3A;
    flex-shrink: 0;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-details strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0;
}

.service-details span {
    color: #888;
    font-size: 0.9rem;
}

.service-meta {
    margin-left: auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 6px;
    background: #111111;
    padding: 4px 6px;
    border-radius: 6px;
    min-width: 55px;
    max-width: 55px;
}

.service-duration {
    color: #9CA3AF;
    font-size: 12px;
}

.service-price {
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
}

/* --- Time Periods Filter --- */
.time-periods-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.time-periods-wrapper.is-loading {
    pointer-events: none;
}

.time-periods-wrapper.is-loading .period-btn {
    color: transparent !important;
    border-color: #3b3b3b;
    background: linear-gradient(90deg, #2b2b2b 25%, #3b3b3b 45%, #2b2b2b 65%);
    background-size: 200% 100%;
    animation: mrb-shimmer 1.1s linear infinite;
}

.period-btn {
    min-height: auto !important;
    height: auto;
    background: #111;
    border: 1px solid #444;
    color: #ffffff !important;
    font-size: 12px !important;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.period-btn:hover {
    background: #111;
    color: #fff !important;
    border-color: #666;
}

.period-btn.active {
    background: #fff;
    color: #111 !important;
    border-color: #fff;
}

/* --- Date & Time Pickers --- */
.custom-picker-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px;
    border-radius: 6px;
}

.selected-datetime-preview {
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #121212;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.selected-datetime-preview i {
    color: #cfcfcf;
}

#selected-datetime-text {
    color: #d9d9d9;
    word-break: break-word;
}

.booking-support-help {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #1f6f3b;
    border-radius: 10px;
    background: #0f2b1b;
}

.booking-support-help-text {
    margin: 0 0 10px;
    color: #d8f6e3;
    font-size: 14px;
    line-height: 1.45;
}

.booking-support-help-btn {
    display: inline-flex;
    width: 100%;
    margin-top: 16px;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 6px;
    background: #2bbf63;
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.2s ease;
}

.booking-support-help-btn:hover,
.booking-support-help-btn:focus {
    background: #34d071;
    color: #041108;
    transform: translateY(-1px);
}

.custom-picker {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 5px;
    scrollbar-width: none; /* Firefox */
}
.custom-picker::-webkit-scrollbar { display: none; } /* Chrome */

#time-slots-container.is-loading {
    min-height: 92px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    pointer-events: none;
}

.times-loading-skeleton {
    display: flex;
    gap: 8px;
    width: 100%;
}

.times-loading-pill {
    min-width: 80px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #444;
    background: linear-gradient(90deg, #2b2b2b 25%, #3b3b3b 45%, #2b2b2b 65%);
    background-size: 200% 100%;
    animation: mrb-shimmer 1.1s linear infinite;
}

@keyframes mrb-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.picker-item {
    min-width: 90px !important;
    font-size: 15px;
    padding: 6px 8px !important;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    color: #ccc;
    transition: all 0.3s;
}

.picker-item:hover {
    background: #444;
    color: #fff;
}

.picker-item.selected {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.picker-item.booked {
    opacity: 0.5;
    cursor: not-allowed;
    padding: 6px 20px !important;
    background: #430000;
    color: red;
    font-weight: 400;
    border: 1px solid red;
}

.arrow {
    background: none;
    border: none;
    color: #000;
    background: #fff;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    padding: 6px 10px;
}

/* --- Form Inputs --- */
#booking-form input, 
#booking-form textarea {
    background: #252525;
    border: 1px solid #333;
    color: #fff !important;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#booking-form input:focus, 
#booking-form textarea:focus {
    border-color: #fff;
    outline: none;
}

.booking-field-label {
    display: block;
    margin-bottom: 8px;
    color: #cfcfcf;
    font-size: 0.9rem;
}

.booking-phone-field {
    margin-bottom: 12px;
    width: 100%;
}

.booking-phone-country-search {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #1f1f1f;
    border: 1px solid #343434;
    border-radius: 8px;
    color: #fff;
}

.booking-phone-input-wrap {
    display: grid;
    grid-template-columns: 167px minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid #333;
    border-radius: 6px;
    background: #252525;
    overflow: hidden;
    transition: border-color .25s ease;
    width: 100%;
}

.booking-phone-input-wrap:focus-within {
    border-color: #fff;
}

.booking-phone-country {
    min-width: 0;
    border: 0;
    background: #111111;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-right: 10px;
    font-size: .9rem;
    text-overflow: ellipsis;
}

#phone {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

.booking-phone-field.single-country-mode .booking-phone-country {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    padding-right: 10px;
    cursor: default;
}

.booking-phone-field.single-country-mode .booking-phone-country::-ms-expand {
    display: none;
}

.booking-details-notice {
    margin-top: 14px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #7a4c00;
    background: rgba(245, 158, 11, 0.14);
    color: #ffbd4a;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.booking-details-notice i {
    margin-top: 2px;
}

/* --- Buttons --- */
.next-btn, .submit-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 30px !important;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    flex: 1;
}

.next-btn:hover, .submit-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.next-btn:disabled {
    background: #444;
    color: #777;
    cursor: not-allowed;
    transform: none;
}

.prev-btn {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
}

.prev-btn:hover {
    border-color: #fff;
    color: #fff;
}

.step-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Theme Override Shield (scoped to booking modal only) --- */
#bookingModal .step-buttons button,
#bookingModal .step-buttons button[type="button"],
#bookingModal .step-buttons button[type="submit"],
#bookingModal .step-buttons .next-btn,
#bookingModal .step-buttons .submit-btn,
#bookingModal .step-buttons .prev-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none;
}

#bookingModal .step-buttons .next-btn,
#bookingModal .step-buttons .submit-btn {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #fff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    min-height: 52px !important;
    height: 52px !important;
    padding: 0 22px !important;
    line-height: 1 !important;
    font-size: 1rem !important;
}

#bookingModal .step-buttons .next-btn:hover,
#bookingModal .step-buttons .submit-btn:hover {
    background: #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    color: #000 !important;
}

#bookingModal .step-buttons .next-btn:disabled {
    background: #444 !important;
    border-color: #444 !important;
    color: #777 !important;
    cursor: not-allowed !important;
}

#bookingModal .step-buttons .prev-btn {
    background: transparent !important;
    color: #888 !important;
    border: 1px solid #444 !important;
    border-radius: 6px !important;
}

#bookingModal .step-buttons .prev-btn:hover {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}

#bookingModal .review-edit-btn,
#bookingModal button.review-edit-btn,
#bookingModal .review-summary-row .review-edit-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-family: inherit !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#bookingModal .review-edit-btn:hover,
#bookingModal button.review-edit-btn:hover,
#bookingModal .review-summary-row .review-edit-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

#bookingModal .service-item {
    padding: 10px 12px !important;
    gap: 10px !important;
}

#bookingModal .service-thumb {
    width: 42px !important;
    height: 42px !important;
}

#bookingModal .booking-phone-input-wrap {
    grid-template-columns: 185px minmax(0, 1fr) !important;
}

#bookingModal .booking-phone-country {
    margin-right: 0 !important;
    height: 48px !important;
    line-height: 1.2 !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #fff !important;
}

#bookingModal .booking-phone-input-wrap #phone {
    height: 48px !important;
}

#bookingModal .prev-btn i,
#bookingModal .review-edit-btn i,
#bookingModal .selected-datetime-preview i,
#bookingModal .review-summary-label i,
#bookingModal .service-check i {
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
}

/* Font fallback if icon font is blocked by theme/CDN policies */
#bookingModal .prev-btn i,
#bookingModal .review-edit-btn i {
    display: none !important;
}

#bookingModal .prev-btn::before {
    content: "\2190";
    font-size: 14px;
    line-height: 1;
}

#bookingModal .review-edit-btn::before {
    content: "\270E";
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 768px) {
    #bookingModal .step-buttons .next-btn,
    #bookingModal .step-buttons .submit-btn {
        min-height: 46px !important;
        height: 46px !important;
        padding: 0 16px !important;
    }

    #bookingModal .booking-phone-input-wrap {
        grid-template-columns: 136px minmax(0, 1fr) !important;
    }
}

/* --- Summary Content --- */
#summary-content p {
    margin-bottom: 15px;
    color: #ccc;
    display: flex;
    justify-content: space-between;
}

#summary-content strong {
    color: #fff;
}

#summary-content hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 20px 0;
}

.total-summary {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #fff;
    text-align: right;
}

.review-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-summary-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #111;
}

.review-summary-label {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-summary-value {
    color: #ccc;
    text-align: right;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-summary-details-block {
    max-width: 100%;
    text-align: left;
    white-space: normal;
    line-height: 1.45;
    background: #171717;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 8px 10px;
}

.review-summary-details-block div {
    color: #d7d7d7;
    font-size: 0.9rem;
}

.review-edit-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #444;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.review-edit-btn:hover {
    border-color: #fff;
}

.review-summary-total {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #333;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
}

body.mrb-booking-modal-open,
html.mrb-booking-modal-open {
    overflow: hidden !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .mrb-template-modern {
        flex-direction: column;
    }
    
    .booking-steps-wrapper {
        order: 1;
        height: 100%;
        flex: 1;
    }
    
    #booking-summary {
        display: none;
    }

    form#booking-form{
        max-width: 95%;
    }

    .review-summary-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .review-summary-value {
        max-width: 100%;
        text-align: left;
    }

    .booking-phone-input-wrap {
        grid-template-columns: 1fr;
    }

    .booking-phone-country {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #333;
        min-height: 44px;
    }
    #phone{
        padding: 10px;
    }
    .review-edit-btn {
        justify-self: end;
    }
    
 
    
    .modal-content {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100dvh;
        width: 100%;
        border-radius: 0;
    }
    
    .step-content-scroll {
        padding: 20px;
    }
    
    .step-buttons {
        padding: 15px 20px;
        position: sticky;
        bottom: 0;
        gap: 10px;
    }

    .service-item {
        padding: 12px;
    }

    .service-thumb {
        width: 42px;
        height: 42px;
    }
}
