/* ================================================================
   cart_extra_services.css
   Добави в <head> или в main CSS файла на сайта.
   ================================================================ */

.extraServiceWrapper{
	width: 100%;
}

/* ── Wrapper списък с услуги ─────────────────────────────────── */
.add-services-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0;
    width: 100%;
    box-sizing: border-box;
}

/* ── Един ред / услуга ───────────────────────────────────────── */
.svc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #b3d0e8;
    border-radius: 8px;
	background: #f0f6fb;
    cursor: pointer;
    user-select: none;
    transition: background 0.13s, border-color 0.13s;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    flex-wrap: nowrap;
	justify-content: space-between;
}
.svc-item:hover { background: #f0f8ff; }
.svc-item.svc-selected { background: #eaf7ef; border-color: #7ed4a4; }
.svc-item.svc-loading  { cursor: default; }

/* Визуален чекбокс */
.svc-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 5px;
    border: 2px solid #c5cdd8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s;
}
.svc-item.svc-selected .svc-check { background: #2a9d5c; border-color: #2a9d5c; }

.svc-tick { display: none; }
.svc-item.svc-selected .svc-tick { display: block; }

/* Текст */
.svc-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}

.svc-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2332;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.svc-desc {
    font-size: 0.76rem;
    color: #6b7a8d;
    margin-top: 1px;
    white-space: normal;
    line-height: 1.3;
}
.svc-item.svc-selected .svc-name { color: #1a6b3e; }

/* ── Бутон Инфо ──────────────────────────────────────────────── */
.svc-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    /* border-bottom: 1px solid #0077b6; */
    padding: 2px;
    color: #0077b6;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
    user-select: none;
}

/* .svc-info-btn:hover { 
	background: #0077b6;
    color: #fff;
    border-radius: 50px; 
} */

.svc-item.svc-selected .svc-info-btn { 
	color: #2a9d5c;
	/* border-bottom: 1px solid #2a9d5c; */ 

}
/* .svc-item.svc-selected .svc-info-btn:hover { background: #2a9d5c; color: #fff; } */

.svc-info-text{
	text-decoration: underline;
}

/* Значка с цена */
.svc-price-badge {
    display: none;
    background: #eaf7ef;
    color: #2a9d5c;
    border: 1px solid #9edad5;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.svc-item.svc-selected .svc-price-badge { display: block; }

/* CTA */
.svc-cta {
    font-size: 0.76rem;
    color: #0077b6;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.svc-item.svc-selected .svc-cta,
.svc-item.svc-loading  .svc-cta { display: none; }

/* Spinner на реда */
.svc-spinner {
    display: none;
    width: 17px;
    height: 17px;
    min-width: 17px;
    border: 2px solid #dde3ea;
    border-top-color: #0077b6;
    border-radius: 50%;
    animation: svcRowSpin 0.6s linear infinite;
    flex-shrink: 0;
}
.svc-item.svc-loading .svc-spinner { display: block; }

@keyframes svcRowSpin { to { transform: rotate(360deg); } }

/* ── Responsive – .add-services-list-wrap на мобилно ────────── */
@media (max-width: 600px) {

    .add-services-list-wrap {
        gap: 6px;
    }

    /* Редът се наврежда на два реда:
       [чекбокс] [текст]         ← горен ред (flex)
       [badge / cta / spinner]   ← под текста, наравно с него  */
    .svc-item {
        flex-wrap: wrap;
        /* align-items: flex-start; */
        gap: 8px 8px;
        padding: 10px 10px;
    }

    .svc-check {
        margin-top: 2px;
        flex-shrink: 0;
    }

    /* Текстът заема целия останал ред */
    .svc-body {
        flex: 1 1 calc(100% - 38px);
    }

    /* Името може да wrap-не */
    .svc-name {
        white-space: normal;
        word-break: break-word;
        font-size: 0.86rem;
    }

    .svc-desc {
        font-size: 0.74rem;
    }

    /* Badge, CTA и spinner – нов ред, наравно с текста */
    .svc-price-badge,
    .svc-cta,
    .svc-spinner {
        margin-left: 30px;
        flex-shrink: 0;
    }

    .svc-price-badge {
        font-size: 0.78rem;
        padding: 3px 8px;
    }

    .svc-cta {
        font-size: 0.74rem;
    }
}


/* ================================================================
   МОДАЛ
   ================================================================ */
.svc-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 50, 0.48);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.svc-modal-backdrop.svc-open { display: flex; }

.svc-modal {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: visible;
    animation: svcModalIn 0.2s ease;
}
@keyframes svcModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

/* Хедър на модала */
.svc-modal-hd {
    background: #0077b6;
	border-radius: 6px 6px 0 0;
    color: #fff;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
}
.svc-modal-title-text { font-size: 0.97rem; font-weight: 700; }
.svc-close-btn {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.13s;
    flex-shrink: 0;
}
.svc-close-btn:hover { background: rgba(255,255,255,0.32); }

/* Тяло */
.svc-modal-body { padding: 16px; }

/* Редове на формата */
.svc-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.svc-fg { display: flex; flex-direction: column; gap: 4px; }

.svc-fg-date   { flex: 1 1 200px; }
.svc-fg-nights { flex: 0 0 130px; }
.svc-fg-acc    { flex: 1 1 100%; }

.svc-fg-label {
    font-size: 0.72rem;
    color: #515a66;
}

/* ── Daterangepicker trigger ─────────────────────────────────── */
.svc-drp-wrap { width: 100%; }
.svc-drp-trigger {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #dde3ea;
    border-radius: 7px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1a2332;
    min-height: 38px;
    transition: border-color 0.13s;
    white-space: nowrap;
}
.svc-drp-trigger:hover,
.svc-drp-trigger.active { border-color: #0077b6; }

/* ── Choices (нощувки) ───────────────────────────────────────── */
.svc-choices-wrap { width: 100%; }
.svc-choices-wrap .choices { width: 100%; }
.svc-choices-wrap .choices__inner {
    border: 1.5px solid #dde3ea !important;
    border-radius: 7px !important;
    padding: 5px 10px !important;
    min-height: 38px !important;
    font-size: 0.88rem !important;
    background: #fff !important;
}
.svc-choices-wrap .choices__inner:focus-within { border-color: #0077b6 !important; }

/* ── AccBox trigger ──────────────────────────────────────────── */
.svc-accbox-wrap { position: relative; width: 100%; }
.svc-acc-box-trigger {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #dde3ea;
    border-radius: 7px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1a2332;
    min-height: 38px;
    transition: border-color 0.13s;
}
.svc-acc-box-trigger:hover { border-color: #0077b6; }

/* AccBox popup */
.svc-acc-popup {
    position: absolute;
    top: calc(100% + 4px); 
    left: 0;
    z-index: 10001;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 260px;
    animation: svcAccIn 0.15s ease;
}
@keyframes svcAccIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
.svc-acc-popup-close {
    text-align: right;
    padding: 8px 10px 0;
    cursor: pointer;
    color: #6b7a8d;
}
.svc-acc-popup-close:hover { color: #1a2332; }

.svc-acc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    gap: 10px;
}
.svc-acc-lbl { font-size: 0.86rem; color: #1a2332; }

/* number-style (наследява стиловете от number-picker.css) */
.svc-acc-num {
    width: 42px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    padding: 2px 4px;
}

/* Полета за възраст на деца */
.svc-age-inp {
    width: 50px;
    text-align: center;
    border: 1.5px solid #dde3ea;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.13s;
}
.svc-age-inp:focus { border-color: #0077b6; }

/* ── Бутон Търси ─────────────────────────────────────────────── */
.svc-search-btn {
    width: 100%;
    background: #0077b6;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.13s;
    margin-top: 4px;
}
.svc-search-btn:hover    { background: #005f92; }
.svc-search-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Loader ──────────────────────────────────────────────────── */
.svc-searching {
    text-align: center;
    padding: 14px;
    font-size: 0.85rem;
    color: #6b7a8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.svc-search-spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #dde3ea;
    border-top-color: #0077b6;
    border-radius: 50%;
    animation: svcRowSpin 0.6s linear infinite;
}

/* ── Без резултати ───────────────────────────────────────────── */
.svc-no-results {
    margin-top: 12px;
    text-align: center;
    padding: 16px;
    font-size: 0.85rem;
    color: #6b7a8d;
    border: 1px dashed #dde3ea;
    border-radius: 8px;
}

/* ── Списък с резултати ──────────────────────────────────────── */
.svc-results-list {
    margin-top: 12px;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    overflow: hidden;
}
.svc-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf1f5;
    cursor: pointer;
    transition: background 0.12s;
}
.svc-result-item:last-child    { border-bottom: none; }
.svc-result-item:hover         { background: #f0f6fb; }
.svc-result-item.svc-picked    { background: #eaf7ef; border-left: 3px solid #2a9d5c; }

.sri-info { flex: 1; }
.sri-name   { font-size: 0.87rem; font-weight: 600; color: #1a2332; }
.sri-detail { font-size: 0.76rem; color: #6b7a8d; margin-top: 2px; }
.sri-price  { font-size: 0.93rem; font-weight: 700; color: #0077b6; white-space: nowrap; }
.svc-result-item.svc-picked .sri-price { color: #2a9d5c; }

/* ── Бутон Потвърди ──────────────────────────────────────────── */
.svc-confirm-btn {
    width: 100%;
    background: #2a9d5c;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    padding: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.13s;
}
.svc-confirm-btn:hover { background: #228849; }

/* ── Responsive – модал на мобилно ──────────────────────────── */
@media (max-width: 520px) {

    /* Модалът се закача отдолу като sheet */
    .svc-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: 6px;
        max-height: 85vh;
    }
    .svc-modal-backdrop { align-items: flex-end; padding: 0; }

    /* Дата + нощувки остават на един ред –
       дата взима оставащото място, нощувки фиксирани вдясно */
    .svc-form-row   { flex-wrap: nowrap; gap: 8px; }

    .svc-fg-date    { flex: 1 1 0; min-width: 0; }
    .svc-fg-nights  { flex: 0 0 110px; }

    /* По-компактни trigger-и на тесен екран */
    .svc-drp-trigger {
        padding: 7px 8px;
        font-size: 0.82rem;
    }
    .svc-choices-wrap .choices__inner {
        padding: 5px 8px !important;
        font-size: 0.82rem !important;
    }

    /* AccBox – отново цял ред */
    .svc-fg-acc { flex: 1 1 100%; }
}

/* ── Daterangepicker – покажи десния (втори) календар ───────── */
.daterangepicker .drp-calendar.right {
    display: block !important;
}