.apd-delivery{margin:18px 0;padding:14px 18px;border:1px solid #e6def1;border-radius:12px;background:#faf8fd;color:#51475e;clear:both;font-size:13px}
.apd-delivery * ,#apd-city-dialog *{box-sizing:border-box}.apd-delivery [hidden],#apd-city-dialog [hidden]{display:none!important}
.apd-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.apd-delivery .apd-heading h2{margin:0;font-size:16px;line-height:1.4;color:#332b3f;white-space:nowrap}
button.apd-city-trigger{display:inline-flex;align-items:center;gap:6px;min-width:0;padding:4px 0;background:none;border:0;color:#7053a3;font:inherit;line-height:1.5;cursor:pointer;text-align:left}
button.apd-city-trigger span:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}.apd-product-city{max-width:55%;font-size:13px!important}.apd-city-trigger:hover span:first-of-type{text-decoration:underline;text-underline-offset:3px}
#apd-header-city{display:none}
@media(min-width:1081px){#nm-top-bar #apd-header-city{display:inline-flex;flex-shrink:0;font-size:12px;color:#695478}#nm-top-bar .nm-top-bar-left{min-width:0}#nm-top-bar #apd-header-city span:first-of-type{max-width:190px}#nm-top-bar .nm-top-bar-text{min-width:0}}
.apd-delivery .apd-variant{margin:3px 0 8px;font-size:11px;color:#81768f;line-height:1.5}.apd-variant strong{font-weight:400}
.apd-results{display:grid;gap:0}.apd-results:empty{display:none}.apd-rate{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:20px;padding:7px 0;border-top:1px solid #eee8f4;line-height:1.5}.apd-rate strong{font-size:13px;font-weight:500}.apd-rate span{font-size:12px;color:#81768f;white-space:nowrap}.apd-rate b{font-size:13px;font-weight:600;color:#513978;min-width:85px;text-align:right;white-space:nowrap}
.apd-delivery .apd-status{margin:6px 0 0;font-size:12px;line-height:1.6;color:#81768f}.apd-status:empty{display:none}.apd-delivery .apd-note{margin:7px 0 0;font-size:11px;line-height:1.5;color:#81768f}
.apd-delivery button.apd-retry,.apd-city-suggestion button{padding:6px 2px;background:none;border:0;color:#7053a3;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.apd-city-trigger:focus-visible,.apd-delivery button:focus-visible,#apd-city-dialog button:focus-visible,#apd-city-dialog input:focus-visible{outline:2px solid #8e70bb;outline-offset:3px}
#apd-city-dialog{position:fixed;inset:0;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:24px;border:1px solid #e6def1;border-radius:18px;background:#fff;color:#51475e;box-shadow:0 16px 70px #30243c35;overflow:auto;font-size:14px}
#apd-city-dialog:not([open]){display:none}#apd-city-dialog::backdrop{background:#25173466}.apd-picker-open{overflow:hidden}
.apd-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}#apd-city-dialog h2{margin:0;font-size:22px;line-height:1.4;color:#332b3f}#apd-city-dialog button.apd-picker-close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:#f5f1fa;color:#7053a3;font-size:25px;line-height:1;cursor:pointer}
#apd-city-dialog .apd-picker-note{margin:8px 0 18px;font-size:13px;line-height:1.6;color:#81768f}#apd-city-dialog label{display:block;margin-bottom:6px;font-size:13px}
#apd-city-dialog #apd-city{display:block;width:100%;height:46px;margin:0;padding:10px 12px;border:1px solid #dcd1ea;border-radius:10px;background:#fff;color:#51475e;font:inherit;font-size:16px;box-shadow:none}
#apd-picker-status{margin:10px 0;font-size:12px;line-height:1.6;color:#81768f}#apd-cities{max-height:250px;overflow:auto;border-top:1px solid #eee8f4;padding-top:4px}#apd-cities [role=option]{padding:11px 10px;border-radius:8px;cursor:pointer;font-size:14px;line-height:1.5}#apd-cities [role=option]:hover,#apd-cities [aria-selected=true]{background:#f0eafa;color:#654b94}
.apd-city-suggestion{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:12px;margin-top:6px;color:#81768f}
@media(max-width:600px){.apd-delivery{padding:12px 14px}.apd-rate{gap:10px}.apd-rate b{min-width:72px}.apd-delivery .apd-heading h2{font-size:15px}#apd-city-dialog{padding:20px}.apd-product-city{max-width:52%}}
/* Product delivery: a clear pickup action followed by compact alternative estimates. */
.apd-delivery{padding:20px;border-radius:18px;border-color:#e8e0f0;background:#fcfaff;color:#43364f}.apd-delivery .apd-heading h2{font-size:18px;font-weight:600}.apd-product-city{padding:5px 10px!important;background:#f1ebf7!important;border-radius:8px}.apd-delivery .apd-variant{margin:6px 0 15px;font-size:12px}.apd-results{gap:8px;margin-top:12px}.apd-rate{grid-template-columns:minmax(0,1fr) auto;gap:2px 14px;padding:12px 14px;border:1px solid #ebe4f0;border-radius:11px;background:#fff}.apd-rate strong{grid-column:1;grid-row:1;font-size:13px;font-weight:500;color:#51425f}.apd-rate span{grid-column:1;grid-row:2;font-size:11px}.apd-rate b{grid-column:2;grid-row:1/3;font-size:14px;color:#50396b}.apd-delivery .apd-note{margin-top:12px;line-height:1.6}.apd-delivery .apd-status{margin-top:12px}@media(max-width:600px){.apd-delivery{padding:16px;border-radius:15px}.apd-delivery .apd-heading h2{font-size:17px}.apd-rate{padding:11px 12px}.apd-product-city{max-width:60%}}

/* Shared carrier labels in compact product delivery rows. */
.apd-rate strong{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.apd-delivery .apd-service-badge{display:inline-flex;align-items:center;grid-column:auto;grid-row:auto;padding:3px 8px;border-radius:6px;background:#e5eeff;color:#1b62c4;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap}
.apd-delivery .apd-service-badge[data-carrier=cdek]{background:#e7f5ec;color:#267449}

/* Product summary. Individual carrier integrations still own their estimates. */
.apd-delivery.apd-compact {
    padding:6px 16px 12px;
    border:1px solid var(--a4u-border,#e3dcea);
    border-radius:16px;
    background:#fff;
    color:var(--a4u-ink,#30283d);
}
.a4u-visual .apd-delivery.apd-compact {background:#fff}
.apd-compact .apd-product-city {
    justify-content:flex-end;
    gap:5px;
    min-height:44px;
    max-width:60%;
    padding:4px 0 4px 6px!important;
    border-radius:6px;
    background:transparent!important;
    color:var(--a4u-purple,#7152a3);
    font-weight:500;
}
.apd-compact .apd-product-city svg,.apd-compact .apd-summary-row svg {flex:none;color:var(--a4u-purple,#7152a3)}
.apd-compact .apd-product-city span {min-width:0}
.apd-compact .apd-prompt,.apd-compact .apd-detail-help,.apd-compact .apd-summary-foot {
    margin:0;
    color:var(--a4u-muted,#6d6378);
    font-size:13px;
    line-height:20px;
}
.apd-compact .apd-prompt {padding:0 0 3px}
.apd-compact .apd-summary-row {
    display:grid;
    grid-template-columns:18px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    padding:6px 0;
    border-top:1px solid var(--a4u-border,#e3dcea);
}
.apd-compact .apd-summary-copy strong {display:block;font-size:15px;line-height:20px;font-weight:700}
.apd-compact [data-apd-meta] {display:block;color:var(--a4u-muted,#6d6378);font-size:13px;line-height:18px}
.apd-compact [data-apd-price] {white-space:nowrap;font-size:16px;line-height:24px;font-weight:700;font-variant-numeric:tabular-nums}
.apd-compact .apd-details {margin:0}
.apd-compact .apd-details>summary {
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:44px;
    gap:12px;
    margin:0;
    padding:6px 2px 6px 0;
    border-top:1px solid var(--a4u-border,#e3dcea);
    color:var(--a4u-purple,#7152a3);
    font-size:14px;
    line-height:20px;
    font-weight:500;
    list-style:none;
    cursor:pointer;
}
.apd-compact .apd-details>summary::-webkit-details-marker {display:none}
.apd-compact .apd-details>summary:after {content:"";width:8px;height:8px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.apd-compact .apd-details[open]>summary:after {transform:rotate(225deg) translate(-1px,-1px)}
.apd-compact .apd-details>summary:focus-visible {outline:2px solid var(--a4u-purple,#7152a3);outline-offset:2px}
.apd-compact .apd-hide-label,.apd-compact .apd-details[open] .apd-show-label {display:none}
.apd-compact .apd-details[open] .apd-hide-label {display:inline}
.apd-compact:has(>.apd-details[open])>.apd-summary {display:none}
.apd-compact .apd-summary-foot {display:none}
.apd-compact .apd-summary:not([hidden])~.apd-summary-foot {display:block}
.apd-compact .apd-details[open]~.apd-summary-foot {display:none}
.apd-compact .apd-detail-help {margin:10px 0 0;font-size:12px;line-height:18px}
.apd-compact [data-apd-options] {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,314px),1fr));
    align-items:start;
    gap:10px 12px;
}
.apd-compact .apd-detail-group {
    min-width:0;
    margin:0;
    border:1px solid var(--a4u-border,#e3dcea);
    border-radius:12px;
    background:#fff;
}
.apd-compact .apd-detail-group h3 {
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    padding:10px 12px;
    border-bottom:1px solid #ece6f2;
    border-radius:11px 11px 0 0;
    background:#f8f5fb;
    color:var(--a4u-ink,#30283d);
    font-size:15px;
    line-height:20px;
    font-weight:650;
}
.apd-compact .apd-detail-group h3 svg {flex:none;color:var(--a4u-purple,#7152a3)}
.apd-compact .apd-detail-list {list-style:none;margin:0;padding:0 12px}
.apd-compact .apd-detail-option {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    min-height:38px;
    margin:0;
    padding:7px 0;
}
.apd-compact .apd-detail-option+.apd-detail-option {border-top:1px solid #f0ebf5}
.apd-compact .apd-detail-info {display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;min-width:0}
.apd-compact .apd-detail-info .apd-service-badge {padding:0 6px;font-size:13px;line-height:20px}
.apd-compact .apd-detail-info:only-child {grid-column:1/-1}
.apd-compact .apd-detail-info small {font-size:13px;line-height:18px;color:var(--a4u-muted,#6d6378);overflow-wrap:anywhere}
.apd-compact .apd-detail-price {text-align:right;font-size:15px;line-height:20px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.apd-compact .apd-detail-message {grid-column:1/-1;margin:0;font-size:13px;line-height:20px;color:var(--a4u-muted,#6d6378)}
.apd-compact .apd-service-badge {padding:0 5px;border-radius:5px;line-height:18px}
.apd-compact .apd-service-badge[data-carrier=pochta] {background:#e9edfb;color:#284d9e}
.apd-compact .apd-service-badge[data-carrier=yandex] {background:#fff3bd;color:#6b5200}
.apd-compact .apd-detail-message .apd-detail-retry {margin-inline-start:6px}
.apd-compact button.apd-detail-retry {min-height:44px;padding:4px 0;border:0;background:none;color:var(--a4u-purple,#7152a3);font-size:14px;line-height:20px;cursor:pointer}
@media(max-width:600px){
    .apd-delivery.apd-compact {padding:4px 12px 10px}
    .apd-compact .apd-heading {gap:8px}
    .apd-compact .apd-summary-row {gap:8px}
}
