/* ========================================================
   ИТОГИ ВЫБОРА И ПЛАШКИ
   ======================================================== */
.cwb-summary-badge { position: relative; background:#eee6fd; color:#5529c9; border:1px solid #cdb2f8; padding:4px 10px; border-radius:8px; display:inline-block; margin:0 5px 5px 0; font-size:13px; font-weight:600; }
#cwb-booking-summary { font-size: 15px; line-height: 1.6; color: #333; margin-bottom: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.cwb-load-error { margin: 24px; padding: 16px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #991b1b; text-align: center; }
#cwb-summary-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.cwb-summary-cart-icon { display: none; }
.cwb-summary-collapse-hint { display: none; }
#cwb-summary-chevron { display: none; }
#cwb-summary-details { color: #1e293b; font-weight: 500; max-height: 160px; overflow-y: auto; padding: 10px 5px 0 0; margin: 6px 0; border-top: 1px solid #e2e8f0; }
#cwb-summary-details::-webkit-scrollbar { width: 6px; }
#cwb-summary-details::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
#cwb-summary-details::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
#cwb-summary-details::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
#cwb-summary-chevron.cwb-collapsed { transform: rotate(180deg); }
.cwb-summary-remove-daily, .cwb-summary-remove-hourly-day, .cwb-summary-remove-hourly-slot { position: absolute;top: -6px;right: -6px; color: #ef4444; background-color: #fff; border-radius: 100px; padding: 1px; cursor: pointer; border: 1px solid #cdb2f8; }

.cwb-summary-remove-hourly-day{display: none!important;}

.cwb-cart-hourly-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3px; margin-bottom: 3px; font-size: 13px; font-weight: 600; }
.cwb-cart-hourly-date, .cwb-tag-date { position: relative; background:#eee6fd; color:#5529c9; border: 1px solid #cdb2f8; text-align: center; min-width: 48px; box-sizing: border-box; border-radius: 8px; padding: 4px 10px; font-weight: inherit; }
.cwb-cart-hourly-slot, .cwb-tag-time { position: relative; background:#f1f5f9; color:#475569; border:1px solid #e2e8f0; box-sizing: border-box; border-radius: 8px; padding: 4px 10px; font-weight: 400; }
.cwb-cart-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

@keyframes cwbCartBump { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
.cwb-cart-bump { animation: cwbCartBump 0.3s ease-out; }

/* ========================================================
   СТРАНИЦА БРОНИРОВАНИЯ (БЕЗ ФОНА МОДАЛКИ)
   ======================================================== */
.cwb-booking-empty {
    padding: 100px 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cwb-booking-empty__icon {
    margin-bottom: 20px;
    font-size: 40px;
    line-height: 1;
}

.cwb-booking-empty__title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.cwb-booking-empty__text {
    margin: 0 0 30px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
}

.cwb-booking-empty__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    background: #6c39ed;
    box-shadow: 0 4px 10px rgba(108, 57, 237, 0.3);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cwb-booking-empty__link:hover {
    background: #5529c9;
    box-shadow: 0 6px 14px rgba(108, 57, 237, 0.32);
    color: #ffffff;
    transform: translateY(-1px);
}

#cwb-booking-page-wrapper #cwb-modal-overlay { display: none !important; }

.cwb-auth-required-modal { position:fixed; z-index:10050; inset:0; display:grid; place-items:center; padding:20px; opacity:0; pointer-events:none; transition:opacity .2s ease; }
.cwb-auth-required-modal[hidden] { display:none; }
.cwb-auth-required-modal.is-open { opacity:1; pointer-events:auto; }
.cwb-auth-required-modal__backdrop { position:absolute; inset:0; background:rgba(23,32,51,.45); backdrop-filter:blur(4px); }
.cwb-auth-required-modal__dialog { position:relative; z-index:1; width:min(100%,420px); padding:30px; border-radius:20px; color:#172033; background:#fff; box-shadow:0 22px 55px rgba(23,32,51,.22); text-align:center; transform:translateY(12px) scale(.98); transition:transform .2s ease; }
.cwb-auth-required-modal.is-open .cwb-auth-required-modal__dialog { transform:translateY(0) scale(1); }
.cwb-auth-required-modal__close { position:absolute; top:10px; right:12px; width:34px; height:34px; border:0; border-radius:50%; color:#71809a; background:transparent; font-size:25px; line-height:1; cursor:pointer; }
.cwb-auth-required-modal__close:hover { color:#172033; background:#f3f5f8; }
.cwb-auth-required-modal__icon { display:grid; place-items:center; width:54px; height:54px; margin:0 auto 14px; border-radius:50%; color:#fff; background:#6c39ed; }
.cwb-auth-required-modal__icon svg { width:26px; height:26px; }
.cwb-auth-required-modal h2 { margin:0 0 9px; font-size:22px; line-height:1.2; }
.cwb-auth-required-modal p { margin:0; color:#71809a; font-size:14px; line-height:1.5; }
.cwb-auth-required-modal__actions { display:flex; gap:10px; margin-top:24px; }
.cwb-auth-required-modal__actions button { min-height:46px; border-radius:10px; padding:10px 14px; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.cwb-auth-required-modal__secondary { border:1px solid #dce3ed; color:#71809a; background:#fff; }
.cwb-auth-required-modal__primary { flex:1; border:1px solid #6c39ed; color:#fff; background:#6c39ed; }
.cwb-auth-required-modal__primary:hover { background:#5529c9; }

#cwb-booking-page-wrapper #cwb-modal {
    position: relative !important; top: auto !important; left: auto !important; transform: none !important;
    width: 100% !important; max-width: 800px !important; margin: 40px auto 80px !important;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08) !important; border-radius: 24px !important; 
    border: 1px solid #e2e8f0 !important; display: block !important; background: #ffffff !important;
    z-index: 1 !important;
}

body.cwb-modal-open { overflow: auto !important; }
#cwb-booking-page-wrapper #cwb-close-modal { display: none !important; }

#cwb-booking-page-wrapper #cwb-modal-header { 
    padding: 30px 40px !important; background: #f8fafc !important; border-bottom: 1px solid #e2e8f0 !important; 
    border-radius: 24px 24px 0 0 !important; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 15px;
}
#cwb-booking-page-wrapper #cwb-modal-title { font-size: 32px !important; font-weight: 800 !important; color: #0f172a !important; margin: 0; line-height: 1.2; letter-spacing: -0.5px; }
#cwb-booking-page-wrapper .cwb-back-btn { 
    display: inline-flex; align-items: center; gap: 8px; color: #64748b !important; background: #ffffff !important; 
    border: 1px solid #e2e8f0 !important; border-radius: 10px; font-weight: 600 !important; padding: 8px 16px !important;
    cursor: pointer; transition: 0.2s !important; font-size: 14px !important; 
}
#cwb-booking-page-wrapper .cwb-back-btn:hover { color: #6c39ed !important; border-color: #cdb2f8 !important; background: #f3edfe !important; transform: translateX(-3px); }

#cwb-booking-page-wrapper .cwb-step { height: auto !important; max-height: none !important; padding: 40px !important; background: transparent !important; display: block !important; }
#cwb-booking-page-wrapper .cwb-step-header-fixed { position: static !important; padding: 0 !important; border-bottom: none !important; margin-bottom: 20px !important; background: transparent !important; }
#cwb-booking-page-wrapper .cwb-step-scrollable { position: static !important; max-height: none !important; overflow: visible !important; padding: 0 !important; }

#cwb-booking-page-wrapper .cwb-step-footer {
    position: static !important; background: #f8fafc !important; border-top: 1px solid #e2e8f0 !important;
    padding: 30px 40px !important;
    border-radius: 0 0 24px 24px !important;
    /* margin: 40px -40px -40px -40px !important; */
}

#cwb-booking-page-wrapper .cwb-wizard-next-btn {
    background: #6c39ed !important; color: #ffffff !important; border: none !important;
    width: 100% !important; height: 64px !important; border-radius: 16px !important; 
    font-size: 18px !important; font-weight: 800 !important; cursor: pointer !important;
    transition: all 0.2s !important; display: flex !important; justify-content: space-between !important; 
    align-items: center !important; padding: 0 35px !important; box-shadow: 0 10px 25px -5px rgba(108, 57, 237, 0.4) !important; margin-top: 20px !important;
}
#cwb-booking-page-wrapper .cwb-wizard-next-btn:hover:not(:disabled) {
    background: #5529c9 !important; transform: translateY(-3px) !important; box-shadow: 0 15px 30px -5px rgba(108, 57, 237, 0.5) !important;
}
#cwb-booking-page-wrapper .cwb-wizard-next-btn:disabled {
    background: #e2e8f0 !important; color: #94a3b8 !important; box-shadow: none !important; cursor: not-allowed !important; transform: none !important;
}

@media (max-width: 600px) {
    .cwb-booking-empty {
        padding: 28px 0 24px;
    }

    .cwb-booking-empty__icon {
        margin-bottom: 10px;
        font-size: 32px;
    }

    .cwb-booking-empty__title {
        margin-bottom: 8px;
        font-size: 22px;
    }

    .cwb-booking-empty__text {
        max-width: 300px;
        margin: 0 auto 18px;
        font-size: 14px;
    }

    .cwb-booking-empty__link {
        min-height: 44px;
        padding: 11px 20px;
        font-size: 14px;
    }

    #cwb-booking-page-wrapper #cwb-modal { margin: 0 !important; border-radius: 0 !important; border: none !important; }
    #cwb-booking-page-wrapper #cwb-modal-header { padding: 20px !important; border-radius: 0 !important; }
    #cwb-booking-page-wrapper .cwb-step { padding: 20px !important; }
    #cwb-booking-page-wrapper .cwb-step-footer { padding: 20px !important; margin: 30px -20px -20px -20px !important; }
    #cwb-booking-page-wrapper .cwb-wizard-next-btn { padding: 0 20px !important; height: 56px !important; font-size: 16px !important; }
    /* Запас для плавающей нижней панели Safari и safe-area iPhone. */
    #cwb-booking-page-wrapper {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }

    #cwb-footer-step-1 {
        scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
}
