/**
 * Homepage — Da-Doma delivery map module
 */

.home-page .dadoma-delivery,
.dadoma-delivery {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.home-page .dadoma-delivery__shell,
.dadoma-delivery__shell {
    position: relative;
    padding: clamp(22px, 3vw, 34px);
    font-size: 17px;
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 198, 82, .14), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(39, 92, 49, .08), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f7faf6 100%);
    border: 1px solid rgba(16, 24, 40, .07);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .06);
    overflow: hidden;
}

.home-page .dadoma-delivery__grid,
.dadoma-delivery__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr) minmax(260px, .78fr);
    gap: clamp(18px, 2.4vw, 28px);
    align-items: stretch;
}

.home-page .dadoma-delivery__kicker,
.dadoma-delivery__kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 6px 12px;
    color: var(--brand-green-dark, #003324);
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(139, 198, 82, .18);
    border: 1px solid rgba(39, 92, 49, .12);
    border-radius: 999px;
}

.home-page .dadoma-delivery__title,
.dadoma-delivery__title {
    margin: 0 0 10px;
    color: var(--brand-text, #101828);
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.home-page .dadoma-delivery__subtitle,
.dadoma-delivery__subtitle {
    margin: 0 0 16px;
    max-width: 34rem;
    color: var(--brand-muted, #667085);
    font-size: clamp(1.08rem, 1.4vw, 1.22rem);
    line-height: 1.55;
}

.home-page .dadoma-delivery__stat,
.dadoma-delivery__stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 12px;
    color: var(--brand-green-dark, #003324);
    font-size: 1.08rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(39, 92, 49, .12);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(39, 92, 49, .06);
}

.home-page .dadoma-delivery__stat-icon,
.dadoma-delivery__stat-icon {
    display: inline-flex;
    color: var(--brand-green, #275c31);
}

.home-page .dadoma-delivery__benefits,
.dadoma-delivery__benefits {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.home-page .dadoma-delivery__benefit,
.dadoma-delivery__benefit {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 44px;
    color: var(--brand-text, #101828);
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    line-height: 1.4;
}

.home-page .dadoma-delivery__benefit-icon,
.dadoma-delivery__benefit-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--brand-green, #275c31);
    background: linear-gradient(180deg, #fff 0%, #f2f8ee 100%);
    border: 1px solid rgba(39, 92, 49, .12);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(39, 92, 49, .08);
}

.home-page .dadoma-delivery__search,
.dadoma-delivery__search {
    margin-top: 4px;
}

.home-page .dadoma-delivery__search-label,
.dadoma-delivery__search-label {
    display: block;
    margin: 0 0 8px;
    color: var(--brand-muted, #667085);
    font-size: 1rem;
    font-weight: 600;
}

.home-page .dadoma-delivery__search-row,
.dadoma-delivery__search-row {
    display: flex;
    gap: 10px;
}

.home-page .dadoma-delivery__search-input,
.dadoma-delivery__search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    color: var(--brand-text, #101828);
    font-size: 1.08rem;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .12);
    border-radius: 14px;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .03);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.home-page .dadoma-delivery__search-input:focus,
.dadoma-delivery__search-input:focus {
    outline: none;
    border-color: rgba(39, 92, 49, .42);
    box-shadow: 0 0 0 4px rgba(139, 198, 82, .18);
}

.home-page .dadoma-delivery__search-btn,
.dadoma-delivery:not(.dadoma-delivery--product) .dadoma-delivery__search-btn {
    flex: 0 0 auto;
    height: 52px;
    padding: 0 22px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-green, #275c31) 0%, var(--brand-green-dark, #003324) 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(39, 92, 49, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.home-page .dadoma-delivery__search-btn:hover,
.dadoma-delivery:not(.dadoma-delivery--product) .dadoma-delivery__search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(39, 92, 49, .28);
}

.home-page .dadoma-delivery__map-wrap,
.dadoma-delivery__map-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.home-page .dadoma-delivery__map-card,
.dadoma-delivery__map-card {
    position: relative;
    width: 100%;
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
    background: #eef4ea;
    border: 1px solid rgba(39, 92, 49, .1);
}

.home-page .dadoma-delivery__yandex-map,
.dadoma-delivery__yandex-map {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 360px;
    height: 100%;
}

.home-page .dadoma-delivery__map-empty,
.dadoma-delivery__map-empty {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    color: var(--brand-muted, #667085);
    font-size: 1.08rem;
    line-height: 1.5;
    text-align: center;
    background: linear-gradient(180deg, #f7faf6 0%, #eef4ea 100%);
}

.home-page .dadoma-delivery__map-empty[hidden],
.dadoma-delivery__map-empty[hidden] {
    display: none !important;
}

.home-page .dadoma-delivery__map-balloon,
.dadoma-delivery__map-balloon {
    min-width: 210px;
    font-size: 1rem;
    line-height: 1.45;
}

.home-page .dadoma-delivery__map-balloon-region,
.dadoma-delivery__map-balloon-region {
    margin: 0 0 8px;
    color: var(--brand-muted, #667085);
}

.home-page .dadoma-delivery__panel,
.dadoma-delivery__panel {
    min-width: 0;
}

.home-page .dadoma-delivery__panel-inner,
.dadoma-delivery__panel-inner {
    height: 100%;
    padding: clamp(16px, 2vw, 22px);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .06);
    backdrop-filter: blur(8px);
}

.home-page .dadoma-delivery__panel-title,
.dadoma-delivery__panel-title {
    margin: 0 0 14px;
    color: var(--brand-text, #101828);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
}

.home-page .dadoma-delivery__popular,
.dadoma-delivery__popular {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-page .dadoma-delivery__popular-btn,
.dadoma-delivery__popular-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .07);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-page .dadoma-delivery__popular-btn:hover,
.dadoma-delivery__popular-btn.is-active {
    border-color: rgba(39, 92, 49, .24);
    box-shadow: 0 8px 18px rgba(39, 92, 49, .08);
    transform: translateY(-1px);
}

.home-page .dadoma-delivery__popular-name,
.dadoma-delivery__popular-name {
    color: var(--brand-text, #101828);
    font-size: 1.05rem;
    font-weight: 700;
}

.home-page .dadoma-delivery__popular-meta,
.dadoma-delivery__popular-meta {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.home-page .dadoma-delivery__popular-days,
.dadoma-delivery__popular-days {
    color: var(--brand-green-dark, #003324);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .01em;
    white-space: nowrap;
}

.home-page .dadoma-delivery__badge,
.dadoma-delivery__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.2;
    border-radius: 999px;
}

.home-page .dadoma-delivery__badge--free,
.dadoma-delivery__badge--free {
    color: var(--brand-green-dark, #003324);
    background: rgba(139, 198, 82, .22);
}

.home-page .dadoma-delivery__badge--muted,
.dadoma-delivery__badge--muted {
    color: #667085;
    background: rgba(16, 24, 40, .06);
}

.home-page .dadoma-delivery__panel-toolbar,
.dadoma-delivery__panel-toolbar {
    margin-bottom: 12px;
}

.home-page .dadoma-delivery__back-btn,
.dadoma-delivery__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    color: var(--brand-green, #275c31);
    font-size: 1rem;
    font-weight: 700;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.home-page .dadoma-delivery__back-btn::before,
.dadoma-delivery__back-btn::before {
    content: '←';
}

.home-page .dadoma-delivery__back-btn:hover,
.dadoma-delivery__back-btn:focus {
    text-decoration: underline;
}

.home-page .dadoma-delivery__variant-list,
.dadoma-delivery__variant-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-page .dadoma-delivery__variant-btn,
.dadoma-delivery__variant-btn {
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.home-page .dadoma-delivery__variant-btn:hover,
.dadoma-delivery__variant-btn:focus {
    border-color: rgba(39, 92, 49, .28);
    box-shadow: 0 8px 18px rgba(39, 92, 49, .08);
}

.home-page .dadoma-delivery__variant-title,
.dadoma-delivery__variant-title {
    display: block;
    color: var(--brand-text, #101828);
    font-size: 1.05rem;
    font-weight: 700;
}

.home-page .dadoma-delivery__variant-meta,
.dadoma-delivery__variant-meta {
    display: block;
    margin-top: 4px;
    color: var(--brand-muted, #667085);
    font-size: 1rem;
}

.home-page .dadoma-delivery__variant-meta--days,
.dadoma-delivery__variant-meta--days {
    color: var(--brand-green-dark, #003324);
    font-size: 1rem;
    font-weight: 800;
}

.home-page .dadoma-delivery__details-city,
.dadoma-delivery__details-city {
    margin: 0 0 4px;
    color: var(--brand-text, #101828);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
}

.home-page .dadoma-delivery__details-region,
.dadoma-delivery__details-region {
    margin: 0 0 16px;
    color: var(--brand-muted, #667085);
    font-size: 1rem;
}

.home-page .dadoma-delivery__facts,
.dadoma-delivery__facts {
    display: grid;
    gap: 12px;
    margin: 0;
}

.home-page .dadoma-delivery__fact,
.dadoma-delivery__fact {
    padding: 12px 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
    border: 1px solid rgba(39, 92, 49, .1);
    border-radius: 14px;
}

.home-page .dadoma-delivery__fact--primary,
.dadoma-delivery__fact--primary {
    padding: 16px 16px 14px;
    background: linear-gradient(180deg, #fff 0%, #f1f8ec 100%);
    border: 2px solid rgba(39, 92, 49, .18);
    box-shadow: 0 10px 24px rgba(39, 92, 49, .08);
}

.home-page .dadoma-delivery__fact--primary dt,
.dadoma-delivery__fact--primary dt {
    color: var(--brand-green, #275c31);
}

.home-page .dadoma-delivery__fact--primary dd,
.dadoma-delivery__fact--primary dd {
    color: var(--brand-green-dark, #003324);
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.35;
}

.home-page .dadoma-delivery__fact-days.is-unavailable,
.dadoma-delivery__fact-days.is-unavailable {
    color: #8f2d22;
}

.home-page .dadoma-delivery__fact--secondary dd,
.dadoma-delivery__fact--secondary dd {
    font-size: 1.05rem;
    font-weight: 700;
}

.home-page .dadoma-delivery__fact dt,
.dadoma-delivery__fact dt {
    margin: 0 0 4px;
    color: var(--brand-muted, #667085);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-page .dadoma-delivery__fact dd,
.dadoma-delivery__fact dd {
    margin: 0;
    color: var(--brand-text, #101828);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.45;
}

.home-page .dadoma-delivery__fact-price.is-free,
.dadoma-delivery__fact-price.is-free {
    color: var(--brand-green, #275c31);
}

.home-page .dadoma-delivery__message,
.dadoma-delivery__message {
    padding: 12px 14px;
    color: #8f2d22;
    font-size: 1.08rem;
    line-height: 1.45;
    background: #fff1ed;
    border: 1px solid rgba(143, 45, 34, .12);
    border-radius: 12px;
}

.home-page .dadoma-delivery__message.is-info,
.dadoma-delivery__message.is-info {
    color: var(--brand-green-dark, #003324);
    background: rgba(139, 198, 82, .14);
    border-color: rgba(39, 92, 49, .12);
}

.dadoma-delivery__loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    cursor: wait;
}

.dadoma-delivery__loading-overlay[hidden] {
    display: none;
}

.dadoma-delivery__loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 220px;
    text-align: center;
}

.dadoma-delivery__loading-spinner {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(45, 125, 75, .2);
    border-top-color: #2d7d4b;
    border-radius: 50%;
    animation: dadoma-delivery-overlay-spin .75s linear infinite;
}

.dadoma-delivery__loading-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #344054;
}

.dadoma-delivery.is-loading .dadoma-delivery__search-btn,
.dadoma-delivery.is-loading .dadoma-delivery__search-input {
    pointer-events: none;
}

.dadoma-delivery--product.is-loading .dadoma-delivery__search-btn.is-submit-pending {
    animation: none;
    box-shadow: none;
}

@keyframes dadoma-delivery-overlay-spin {
    to {
        transform: rotate(360deg);
    }
}

.home-page .dadoma-delivery__info,
.dadoma-delivery__info {
    display: grid;
    gap: clamp(22px, 3vw, 32px);
    margin-top: clamp(24px, 3vw, 36px);
    padding-top: clamp(22px, 3vw, 32px);
    border-top: 1px solid rgba(16, 24, 40, .08);
}

.home-page .dadoma-delivery__info-title,
.dadoma-delivery__info-title {
    position: relative;
    margin: 0 0 16px;
    padding-left: 16px;
    color: var(--brand-text, #101828);
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.home-page .dadoma-delivery__info-title::before,
.dadoma-delivery__info-title::before {
    content: "";
    position: absolute;
    top: .15em;
    left: 0;
    width: 4px;
    height: calc(100% - .2em);
    border-radius: 999px;
    background: var(--brand-green, #275c31);
}

.home-page .dadoma-delivery__highlights,
.dadoma-delivery__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-page .dadoma-delivery__highlight-card,
.dadoma-delivery__highlight-card {
    padding: 18px 18px 16px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(39, 92, 49, .1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .04);
}

.home-page .dadoma-delivery__highlight-card p,
.dadoma-delivery__highlight-card p {
    margin: 0;
    color: var(--brand-text, #101828);
    font-size: 1.1rem;
    line-height: 1.55;
}

.home-page .dadoma-delivery__highlight-card:first-child p,
.dadoma-delivery__highlight-card:first-child p {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
}

.home-page .dadoma-delivery__info-text,
.dadoma-delivery__info-text {
    display: grid;
    gap: 12px;
    max-width: 980px;
}

.home-page .dadoma-delivery__info-text p,
.dadoma-delivery__info-text p {
    margin: 0;
    color: var(--brand-muted, #667085);
    font-size: 1.12rem;
    line-height: 1.65;
}

.home-page .dadoma-delivery__prep-list,
.dadoma-delivery__prep-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-page .dadoma-delivery__prep-item,
.dadoma-delivery__prep-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(16, 24, 40, .06);
    border-radius: 14px;
}

.home-page .dadoma-delivery__prep-item strong,
.dadoma-delivery__prep-item strong {
    color: var(--brand-text, #101828);
    font-size: 1.12rem;
    font-weight: 800;
}

.home-page .dadoma-delivery__prep-item span,
.dadoma-delivery__prep-item span {
    color: var(--brand-muted, #667085);
    font-size: 1.05rem;
    line-height: 1.55;
}

.home-page .dadoma-delivery__schedule-table-wrap,
.dadoma-delivery__schedule-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .04);
}

.home-page .dadoma-delivery__schedule-table,
.dadoma-delivery__schedule-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.home-page .dadoma-delivery__schedule-table thead th,
.dadoma-delivery__schedule-table thead th {
    padding: 16px 20px;
    color: var(--brand-text, #101828);
    font-size: 1.1rem;
    font-weight: 800;
    text-align: left;
    background: #f3f4f6;
    border-bottom: 1px solid rgba(16, 24, 40, .08);
}

.home-page .dadoma-delivery__schedule-table tbody td,
.dadoma-delivery__schedule-table tbody td {
    padding: 18px 20px;
    color: var(--brand-text, #101828);
    font-size: 1.08rem;
    line-height: 1.5;
    vertical-align: top;
    border-bottom: 1px solid rgba(16, 24, 40, .06);
}

.home-page .dadoma-delivery__schedule-table tbody tr:last-child td,
.dadoma-delivery__schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.home-page .dadoma-delivery__schedule-table tbody tr:nth-child(even) td,
.dadoma-delivery__schedule-table tbody tr:nth-child(even) td {
    background: rgba(247, 250, 246, .72);
}

.home-page .dadoma-delivery .ymaps-b-balloon,
.dadoma-delivery .ymaps-b-balloon,
.home-page .dadoma-delivery [class*="balloon"],
.dadoma-delivery [class*="balloon"] {
    display: none !important;
}

@media (max-width: 1199px) {
    .home-page .dadoma-delivery__grid,
    .dadoma-delivery__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .home-page .dadoma-delivery__panel,
    .dadoma-delivery__panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .home-page .dadoma-delivery__grid,
    .dadoma-delivery__grid {
        grid-template-columns: 1fr;
    }

    .home-page .dadoma-delivery__search-row,
    .dadoma-delivery:not(.dadoma-delivery--product) .dadoma-delivery__search-row {
        flex-direction: column;
    }

    .home-page .dadoma-delivery__search-btn,
    .dadoma-delivery:not(.dadoma-delivery--product) .dadoma-delivery__search-btn {
        width: 100%;
    }

    .home-page .dadoma-delivery__map-card,
    .dadoma-delivery__map-card,
    .home-page .dadoma-delivery__yandex-map,
    .dadoma-delivery__yandex-map {
        min-height: 300px;
    }

    .home-page .dadoma-delivery__highlights,
    .dadoma-delivery__highlights {
        grid-template-columns: 1fr;
    }
}

/* Delivery page */
.delivery-page .dadoma-delivery__shell {
    border-radius: 18px;
}

/* Product popup — keep theme inline-block centering (.modal:before + vertical-align) */
.dadoma-delivery-modal.modal {
    text-align: center;
}

.dadoma-delivery-modal .modal-dialog {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 24px);
    max-width: 1080px;
    margin: 24px auto;
    text-align: left;
}

.dadoma-delivery-modal__content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(16, 24, 40, .18);
}

.dadoma-delivery-modal__header {
    display: block;
    position: relative;
    flex: 0 0 auto;
    padding: 18px 56px 16px 20px;
    border-bottom: 1px solid rgba(16, 24, 40, .08);
    background: #fff;
    text-align: left;
}

.dadoma-delivery-modal .modal-header .close.dadoma-delivery-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 50%;
    opacity: 1;
    text-shadow: none;
    transition: background .15s ease, color .15s ease;
}

.dadoma-delivery-modal .modal-header .close.dadoma-delivery-modal__close:hover,
.dadoma-delivery-modal .modal-header .close.dadoma-delivery-modal__close:focus {
    background: rgba(22, 34, 51, .06);
    color: #182233;
    opacity: 1;
}

.dadoma-delivery-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--brand-text, #101828);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
}

.dadoma-delivery-modal__title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(139, 198, 82, .2);
    color: var(--brand-green-dark, #275c31);
    font-size: 15px;
}

.dadoma-delivery-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #f7faf6;
}

.dadoma-delivery--popup.dadoma-delivery {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.dadoma-delivery--popup .dadoma-delivery__shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 16px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
}

.dadoma-delivery--popup .dadoma-delivery__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "search search"
        "map panel";
    gap: 12px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    height: min(calc(100vh - 210px), 620px);
    max-height: min(calc(100vh - 210px), 620px);
    overflow: hidden;
}

.dadoma-delivery--popup .dadoma-delivery__intro {
    grid-area: search;
}

.dadoma-delivery--popup .dadoma-delivery__map-wrap {
    grid-area: map;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.dadoma-delivery--popup .dadoma-delivery__panel {
    grid-area: panel;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.dadoma-delivery--popup .dadoma-delivery__search-label {
    margin-bottom: 8px;
    font-size: .98rem;
}

.dadoma-delivery--popup .dadoma-delivery__search-row {
    gap: 10px;
}

.dadoma-delivery--popup .dadoma-delivery__search-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 148px;
}

.dadoma-delivery--popup .dadoma-delivery__map-card,
.dadoma-delivery--popup .dadoma-delivery__yandex-map {
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

.dadoma-delivery--popup .dadoma-delivery__panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 14px;
    overflow: hidden;
}

.dadoma-delivery--popup .dadoma-delivery__result:not([hidden]),
.dadoma-delivery--popup .dadoma-delivery__variants:not([hidden]),
.dadoma-delivery--popup .dadoma-delivery__details:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.dadoma-delivery--popup .dadoma-delivery__panel-title {
    flex: 0 0 auto;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.dadoma-delivery--popup .dadoma-delivery__panel-toolbar {
    flex: 0 0 auto;
}

.dadoma-delivery--popup .dadoma-delivery__panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
    margin-right: -2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(39, 92, 49, .35) transparent;
}

.dadoma-delivery--popup .dadoma-delivery__panel-scroll::-webkit-scrollbar {
    width: 6px;
}

.dadoma-delivery--popup .dadoma-delivery__panel-scroll::-webkit-scrollbar-thumb {
    background: rgba(39, 92, 49, .28);
    border-radius: 999px;
}

.dadoma-delivery--popup .dadoma-delivery__popular,
.dadoma-delivery--popup .dadoma-delivery__variant-list {
    margin: 0;
}

.dadoma-delivery--popup .dadoma-delivery__details-head,
.dadoma-delivery--popup .dadoma-delivery__facts {
    flex: 0 0 auto;
}

.dadoma-delivery--popup .dadoma-delivery__message {
    flex: 0 0 auto;
}

@media (max-width: 991px) {
    .dadoma-delivery-modal .modal-dialog {
        margin: 12px auto;
    }

    .dadoma-delivery-modal__content {
        max-height: calc(100vh - 24px);
    }

    .dadoma-delivery--popup .dadoma-delivery__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 260px minmax(180px, 36vh);
        grid-template-areas:
            "search"
            "map"
            "panel";
        height: auto;
        max-height: calc(100vh - 180px);
    }

    .dadoma-delivery--popup .dadoma-delivery__map-card,
    .dadoma-delivery--popup .dadoma-delivery__yandex-map {
        height: 100%;
        min-height: 0;
    }

    .dadoma-delivery--popup .dadoma-delivery__panel-inner {
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .dadoma-delivery--popup .dadoma-delivery__search-row {
        flex-direction: column;
    }

    .dadoma-delivery--popup .dadoma-delivery__search-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Product page sidebar — compact inline delivery widget */
.dadoma-delivery--product {
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
}

.dadoma-delivery--product .dadoma-delivery__shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 198, 82, .14), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(39, 92, 49, .08), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f7faf6 100%);
    box-shadow: none;
    overflow: hidden;
}

.dadoma-delivery--product .dadoma-delivery__product-head {
    margin: 0;
}

.dadoma-delivery--product .dadoma-delivery__product-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: #172033;
}

.dadoma-delivery--product .dadoma-delivery__product-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eef8f2;
    color: #2d7d4b;
    font-size: 13px;
}

.dadoma-delivery--product .dadoma-delivery__search--product {
    margin: 0;
}

.dadoma-delivery--product .dadoma-delivery__search-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
}

.dadoma-delivery--product .dadoma-delivery__search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d8e3ec;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
}

.dadoma-delivery--product .dadoma-delivery__search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d7eadf;
    border-radius: 10px;
    background: #f3faf6;
    color: #2d7d4b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
    transform: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    box-sizing: border-box;
}

.dadoma-delivery--product .dadoma-delivery__search-btn--link {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 12px;
    border: 1px solid #d7eadf;
    border-radius: 10px;
    background: #f3faf6;
    color: #2d7d4b;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

.dadoma-delivery--product .dadoma-delivery__search-btn--link:hover,
.dadoma-delivery--product .dadoma-delivery__search-btn--link:focus {
    background: #eaf7ef;
    border-color: #2d7d4b;
    color: #1f6b3a;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

.dadoma-delivery--product .dadoma-delivery__product-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dceee3;
    border-radius: 10px;
    background: #f3faf6;
}

.dadoma-delivery--product .dadoma-delivery__summary-copy {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #475467;
}

.dadoma-delivery--product .dadoma-delivery__summary-label {
    margin-right: 4px;
}

.dadoma-delivery--product .dadoma-delivery__summary-city {
    color: #172033;
    font-weight: 700;
}

.dadoma-delivery--product .dadoma-delivery__summary-when {
    margin-left: 4px;
    color: #1b7a3d;
    font-weight: 700;
}

.dadoma-delivery--product .dadoma-delivery__summary-badge {
    flex: 0 0 auto;
}

.dadoma-delivery--product .dadoma-delivery__search-btn:not(.dadoma-delivery__search-btn--link):hover,
.dadoma-delivery--product .dadoma-delivery__search-btn:not(.dadoma-delivery__search-btn--link):focus {
    background: #eaf7ef;
    border-color: #2d7d4b;
    color: #1f6b3a;
    box-shadow: none;
    transform: none;
}

.dadoma-delivery--product .dadoma-delivery__search-btn.is-submit-pending,
.dadoma-delivery--product .dadoma-delivery__search-btn--link.is-submit-pending {
    border-color: #2d7d4b;
    background: #e8f7ed;
    color: #1f6b3a;
    box-shadow: 0 0 0 3px rgba(45, 125, 75, .16);
    animation: dadoma-delivery-submit-pulse 1.8s ease-in-out infinite;
}

@keyframes dadoma-delivery-submit-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(45, 125, 75, .16);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(45, 125, 75, .24);
    }
}

.dadoma-delivery--product .dadoma-delivery__search-input:focus + .dadoma-delivery__search-btn.is-submit-pending,
.dadoma-delivery--product .dadoma-delivery__search-input:focus + .dadoma-delivery__search-btn--link.is-submit-pending {
    border-color: #24844a;
}

.dadoma-delivery--product .dadoma-delivery__panel--product {
    margin: 0;
    padding: 12px;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    background: #fbfcfd;
}

.dadoma-delivery--product .dadoma-delivery__panel--product[hidden] {
    display: none !important;
}

.dadoma-delivery--product .dadoma-delivery__panel--product .dadoma-delivery__panel-inner {
    display: none;
}

.dadoma-delivery--product .dadoma-delivery__panel-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.dadoma-delivery--product .dadoma-delivery__panel-scroll {
    max-height: 180px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.dadoma-delivery--product .dadoma-delivery__popular {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dadoma-delivery--product .dadoma-delivery__popular-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0 0 6px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.dadoma-delivery--product .dadoma-delivery__popular-btn:hover,
.dadoma-delivery--product .dadoma-delivery__popular-btn.is-active {
    border-color: #9fc7ae;
    background: #f3faf6;
    box-shadow: 0 2px 8px rgba(45, 125, 75, .08);
}

.dadoma-delivery--product .dadoma-delivery__popular-name {
    font-size: 14px;
    font-weight: 700;
    color: #172033;
}

.dadoma-delivery--product .dadoma-delivery__popular-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.dadoma-delivery--product .dadoma-delivery__product-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dadoma-delivery--product .dadoma-delivery__product-benefit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: #475467;
}

.dadoma-delivery--product .dadoma-delivery__product-benefit i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #2d7d4b;
    font-size: 12px;
}

.dadoma-delivery--product .dadoma-delivery__map-wrap--product {
    margin: 0;
}

.dadoma-delivery--product .dadoma-delivery__map-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 0;
    height: auto;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    background: #f4f7fa;
}

.dadoma-delivery--product .dadoma-delivery__yandex-map {
    display: block;
    width: 100%;
    height: 180px;
    min-height: 180px;
}

.dadoma-delivery--product .dadoma-delivery__map-empty {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px;
    font-size: 13px;
    color: #667085;
    text-align: center;
}

.dadoma-delivery--product .dadoma-delivery__details-head {
    margin: 0 0 10px;
}

.dadoma-delivery--product .dadoma-delivery__details-city {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #172033;
}

.dadoma-delivery--product .dadoma-delivery__details-region {
    margin: 4px 0 0;
    font-size: 13px;
    color: #667085;
}

.dadoma-delivery--product .dadoma-delivery__facts {
    display: grid;
    gap: 8px;
    margin: 0;
}

.dadoma-delivery--product .dadoma-delivery__fact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: baseline;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
}

.dadoma-delivery--product .dadoma-delivery__fact dt {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
}

.dadoma-delivery--product .dadoma-delivery__fact dd {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #172033;
}

.dadoma-delivery--product .dadoma-delivery__message {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
}

@media (max-width: 767px) {
    .dadoma-delivery--product .dadoma-delivery__search-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .dadoma-delivery--product .dadoma-delivery__search-input {
        flex: 0 0 100%;
        width: 100%;
        height: 42px;
        min-height: 42px;
        max-height: 42px;
    }

    .dadoma-delivery--product .dadoma-delivery__search-btn,
    .dadoma-delivery--product .dadoma-delivery__search-btn--link {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .dadoma-delivery--product .dadoma-delivery__yandex-map {
        height: 160px;
        min-height: 160px;
    }
}
