/* oCheckout - one page checkout. Scoped under .ocheckout-page */

.ocheckout-page {
    --ock-accent: #4f46e5;
    --ock-radius: 12px;
    /* Pin for the pickup-point button; inline so no request and no icon font. */
    --ock-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
    --ock-text: #111827;
    --ock-text-soft: #6b7280;
    --ock-border: #e5e7eb;
    --ock-bg-field: #f6f7f9;
    --ock-danger: #ef4444;
    color: var(--ock-text);
    -webkit-font-smoothing: antialiased;
    margin: 0 auto 40px;
}

.ocheckout-page *, .ocheckout-page *::before, .ocheckout-page *::after { box-sizing: border-box; }

/* ---------- head ---------- */

.ock-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 20px;
}

.ock-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.ock-login-bar { font-size: 14px; color: var(--ock-text-soft); }

.ock-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--ock-accent);
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ock-link:hover { opacity: 0.8; }

/* ---------- layout ---------- */

.ock-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.ock-aside { position: sticky; top: 20px; }

.ocheckout-page.ock-one-col { max-width: 760px; }
.ocheckout-page.ock-one-col .ock-grid { grid-template-columns: minmax(0, 1fr); }
.ocheckout-page.ock-one-col .ock-aside { position: static; }

@media (max-width: 991px) {
    .ock-grid { grid-template-columns: minmax(0, 1fr); }
    .ock-aside { position: static; }
}

/* ---------- cards ---------- */

.ock-card {
    background: #fff;
    border: 1px solid var(--ock-border);
    border-radius: var(--ock-radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    padding: 22px;
    margin-bottom: 18px;
}

.ock-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 16px;
}

.ock-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ock-accent);
    background: #eef0ff;
    background: color-mix(in srgb, var(--ock-accent) 11%, #fff);
}

/* ---------- fields ---------- */

.ock-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.ock-field-wide { grid-column: 1 / -1; }
.ock-field-comment { margin-top: 14px; }

/* «Город» + «Адрес» in one row (renderFields). With the other one hidden each
   keeps the width it had alone: the city half the row, the address all of it. */
.ock-field-pair {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 14px 16px;
}

.ock-field-pair > .ock-field { flex: 1 1 0; min-width: 0; }
.ock-field-pair > [data-field="city"] { flex: 0 0 calc(50% - 8px); }

/* After an odd number of half-width fields: back to two plain grid items. */
.ock-field-pair.ock-pair-off { display: contents; }

@media (max-width: 639px) {
    .ock-fields { grid-template-columns: minmax(0, 1fr); }
    .ock-field-pair { flex-direction: column; align-items: stretch; }
    .ock-field-pair > .ock-field,
    .ock-field-pair > [data-field="city"] { flex: none; }
}

.ock-field { position: relative; }

.ock-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 6px;
}

.ock-field label em {
    color: var(--ock-danger);
    font-style: normal;
}

/* Checkbox custom fields render via the .ock-check layout. The ".ock-field label"
   rule above (display:block) is more specific than ".ock-check", which collapsed
   the box to a sliver; re-assert the flex layout for in-field checkboxes. */
.ock-field-check .ock-check { display: flex; align-items: center; }
.ock-field-check .ock-check-box { display: inline-block; margin-top: 0; }

.ock-note {
    padding: 10px 14px;
    border-left: 3px solid var(--ock-accent);
    border-radius: 0 8px 8px 0;
    background: var(--ock-bg-field);
    color: var(--ock-text);
    font-size: 13px;
    line-height: 1.45;
}

.ock-input {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ock-text);
    background: var(--ock-bg-field);
    border: 1px solid transparent;
    border-radius: calc(var(--ock-radius) - 4px);
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.ock-input:focus {
    background: #fff;
    border-color: var(--ock-accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ock-accent) 18%, transparent);
}

.ock-textarea { height: auto; min-height: 84px; resize: vertical; }

select.ock-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.ock-input.ock-invalid {
    border-color: var(--ock-danger);
    background: #fef2f2;
}

.ock-field-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 5px;
}

.ock-register { margin-top: 16px; }
.ock-register .ock-register-pass { margin-top: 12px; max-width: 360px; }

.ock-field-error {
    display: none;
    font-size: 12px;
    color: var(--ock-danger);
    margin-top: 5px;
}

.ock-field-error.ock-show { display: block; }

/* ---------- method cards ---------- */

.ock-methods-wrap { margin-top: 16px; }
.ock-methods-first { margin-top: 0; }
.ock-fields-address { margin-top: 18px; }
.ock-methods { display: flex; flex-direction: column; gap: 10px; }

/* A pickup block the shipping extension draws into the method list itself (the
   Ozon map, a carrier's own point picker) arrives with its own markup, its own
   Bootstrap classes and none of our spacing - on one store its "Найти" button
   sat glued to the map under it. Everything below is scoped to such a block, so
   it can only ever touch third-party markup sitting inside our method list.

   The selector reads "a direct child of the method list that is not ours":
   every node we render there carries an id or a first class of "ock-". */
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) { margin: 2px 0 6px; }
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) > * + *,
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) > * > * + * { margin-top: 10px; }

/* Search row. Bootstrap's .input-group keeps the field and its button on one
   line; themes that dropped those rules leave the button stranded underneath.
   Stretch, don't fix a height: the button then matches whatever the theme made
   the field. */
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .input-group {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .input-group > .form-control {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .input-group-btn { display: flex; flex: 0 0 auto; }
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .input-group-btn > .btn { height: auto; }

/* The chosen point and its "Изменить" button share one line: as plain inline
   content the address sits on the button's top edge instead of its centre.
   Aligned rather than turned into a flex row, because the extension itself
   toggles the row with an inline display and would fight a display rule. */
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .alert > * { vertical-align: middle; }
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .alert > .btn { margin-left: 10px; }

/* Their buttons in the checkout's own shape. Font size and weight only - the
   theme's own text-transform is left alone, so these read exactly like the
   "Оформить заказ" button next to them. */
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: calc(var(--ock-radius) - 2px);
    background: var(--ock-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: filter 0.15s;
}

.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .btn:hover { filter: brightness(0.94); }

/* Secondary shades of Bootstrap map onto our secondary button. */
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .btn-default,
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .btn-secondary,
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .btn-light {
    background: var(--ock-text);
    font-weight: 400;
}

.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .btn-default:hover,
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .btn-secondary:hover,
.ock-methods > *:not([id^="ock-"]):not([class^="ock-"]) .btn-light:hover { filter: brightness(1.15); }

.ock-method {
    display: flex;
    align-items: center;
    /* the pickup button is a full-width second line of the same card */
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    margin: 0;
    border: 1px solid var(--ock-border);
    border-radius: calc(var(--ock-radius) - 2px);
    cursor: pointer;
    font-weight: 400;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ock-method:hover { border-color: #c7cdd6; }

.ock-method input { position: absolute; opacity: 0; pointer-events: none; }

.ock-method-radio {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: border-color 0.15s;
}

.ock-method-active {
    border-color: var(--ock-accent);
    background: #fafaff;
    background: color-mix(in srgb, var(--ock-accent) 5%, #fff);
    box-shadow: 0 0 0 1px var(--ock-accent);
}

.ock-method-active .ock-method-radio { border-color: var(--ock-accent); }

.ock-method-active .ock-method-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--ock-accent);
}

.ock-method-icon { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex: 0 0 auto; margin-right: 2px; }
.ock-method-body { flex: 1 1 auto; min-width: 0; }
.ock-method-title { display: block; font-size: 14.5px; font-weight: 600; }
.ock-method-sub { display: block; font-size: 12.5px; color: var(--ock-text-soft); margin-top: 2px; }
.ock-method-price { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
/* "we will price this later" - a statement about the method, not a whisper */
.ock-method-note { color: var(--ock-accent); }
.ock-method-error { font-size: 13px; color: var(--ock-danger); }

/* Pickup-point picker owned by a third-party shipping extension: the button is
   ours, the panel next to it is whatever that extension renders into it.

   Second line of the same card: the method row wraps and the button drops
   under the title. Indented past the radio so it lines up with the name. */
.ock-pvzx {
    flex: 0 0 100%;
    margin: 10px 0 0;
    padding-left: 32px;
}

.ock-pvzx-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--ock-accent);
    background: #fff;
    border: 1px solid var(--ock-accent);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

/* A pin, so the button reads as "open the map" before the label is read. */
.ock-pvzx-btn::before {
    content: '';
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: var(--ock-pin) center / contain no-repeat;
    mask: var(--ock-pin) center / contain no-repeat;
}

.ock-pvzx-btn:hover { background: var(--ock-accent); color: #fff; }

.ock-pvzx-btn:focus-visible { outline: 2px solid var(--ock-accent); outline-offset: 2px; }

.ock-pvzx-slot:not(:empty) { margin-top: 10px; }

/* Phone: the row is narrow and the button is the only action in it. */
@media (max-width: 480px) {
    .ock-pvzx { padding-left: 0; }
    .ock-pvzx-btn { width: 100%; justify-content: center; min-height: 38px; }
}

/* method unavailable here (e.g. address too far) - kept visible, greyed */
.ock-method-unavailable { cursor: default; background: #fafbfc; }
.ock-method-unavailable:hover { border-color: var(--ock-border); }
.ock-method-unavailable .ock-method-radio { border-color: #e0e4ea; background: #f1f3f6; }
.ock-method-unavailable .ock-method-title { color: #9aa3af; }
.ock-method-err { color: var(--ock-danger); }

.ock-no-methods { font-size: 14px; }

/* ---------- summary ---------- */

.ock-items { display: flex; flex-direction: column; }

.ock-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f1f4;
}

.ock-item:first-child { padding-top: 0; }

.ock-item-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    max-width: unset !important;
}

.ock-item-info { flex: 1 1 auto; min-width: 0; padding-right: 18px; }

.ock-item-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ock-text);
    text-decoration: none;
    line-height: 1.35;
}

.ock-item-name:hover { color: var(--ock-accent); text-decoration: none; }

.ock-item-option { font-size: 12px; color: var(--ock-text-soft); margin-top: 2px; }

.ock-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.ock-item-qty { font-size: 13px; color: var(--ock-text-soft); }
.ock-item-total { font-size: 14px; font-weight: 600; }

.ock-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ock-border);
    border-radius: 8px;
    overflow: hidden;
}

.ock-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    color: var(--ock-text-soft);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.ock-qty-btn:hover { background: var(--ock-bg-field); color: var(--ock-text); }

.ock-qty-input {
    width: 34px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 13px;
    padding: 0;
    background: #fff;
    outline: none;
}

.ock-item-remove {
    position: absolute;
    top: 10px;
    right: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    color: #b6bcc6;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.ock-item-remove:hover { color: var(--ock-danger); }

/* ---------- coupon ---------- */

.ock-coupon { margin: 14px 0 4px; }
.ock-coupon-row { display: flex; gap: 8px; }
.ock-coupon-row .ock-input { height: 40px; flex: 1 1 auto; }

.ock-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    background: var(--ock-bg-field);
    border-radius: 8px;
    padding: 9px 12px;
}

.ock-coupon-msg { font-size: 12.5px; margin-top: 6px; }
.ock-coupon-msg.ock-ok { color: #16a34a; }
.ock-coupon-msg.ock-fail { color: var(--ock-danger); }

/* reward points (reuses .ock-coupon-row/.ock-coupon-applied/.ock-coupon-msg) */
.ock-reward { margin: 14px 0 4px; }
.ock-reward-hint { font-size: 12px; color: #6b7280; margin-top: 6px; }
.ock-reward-earn { font-size: 12.5px; color: #16a34a; font-weight: 600; margin-top: 8px; }

/* ---------- totals ---------- */

.ock-totals { margin-top: 12px; }

.ock-total-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    color: var(--ock-text-soft);
    padding: 4px 0;
}

/* A long title (order-total extensions like to write essays) used to squeeze the
   amount until "280 ₽" broke across two lines. The amount never wraps; the title
   takes whatever is left. */
.ock-total-row .ock-total-title { min-width: 0; }

.ock-total-row .ock-total-value {
    color: var(--ock-text);
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ock-total-grand {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--ock-border);
    font-size: 17px;
    font-weight: 700;
    color: var(--ock-text);
}

.ock-total-grand .ock-total-value { font-size: 19px; font-weight: 700; }

/* Words where an amount usually stands: let them wrap, and stay quieter than
   the numbers around them.

   `flex` and `min-width` are the point: the amount next door is `flex: 0 0 auto`
   so a price never breaks, but a sentence inherits that rigidity and simply
   refuses to shrink - on a live shop «Стоимость уточним и согласуем с вами после
   оформления» ran straight over the method name beside it. A note may shrink;
   only numbers may not. */
.ock-total-row .ock-total-note {
    white-space: normal;
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    color: var(--ock-text-soft);
    flex: 0 1 auto;
    min-width: 0;
}

.ock-cart-weight {
    margin-top: 6px;
    text-align: right;
    font-size: 12.5px;
    color: var(--ock-text-soft);
}

/* ---------- legal checkboxes ---------- */

.ock-legal { margin: 16px 0 4px; display: flex; flex-direction: column; gap: 10px; }

.ock-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.ock-check input { position: absolute; opacity: 0; pointer-events: none; }

.ock-check-box {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.ock-check input:checked + .ock-check-box {
    border-color: var(--ock-accent);
    background: var(--ock-accent);
}

.ock-check input:checked + .ock-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ock-check.ock-invalid .ock-check-box { border-color: var(--ock-danger); }

.ock-check-label { font-size: 13px; color: var(--ock-text-soft); line-height: 1.45; }
.ock-check-label a { color: var(--ock-accent); }
.ock-check-muted .ock-check-label { color: #9ca3af; }

/* Single-line registration checkbox (ask mode): center the label against the box. */
.ock-register .ock-check { align-items: center; }
.ock-register .ock-check-box { margin-top: 0; }

/* ---------- buttons ---------- */

.ock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: calc(var(--ock-radius) - 2px);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s, opacity 0.15s;
    padding: 0 18px;
}

.ock-btn-primary {
    width: 100%;
    height: 50px;
    background: var(--ock-accent);
    color: #fff;
    margin-top: 14px;
}

.ock-btn-primary:hover { filter: brightness(0.94); }
.ock-btn-primary:disabled { opacity: 0.6; cursor: default; }

.ock-btn-secondary {
    height: 40px;
    background: var(--ock-text);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.ock-btn-secondary:hover { filter: brightness(1.15); }

.ock-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ock-spin 0.7s linear infinite;
}

.ock-btn.ock-loading .ock-btn-spinner { display: inline-block; }

@keyframes ock-spin { to { transform: rotate(360deg); } }

.ock-secure-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
}

/* ---------- free shipping progress ---------- */

/* Under the totals: the buyer has just read the amount, this says what one
   more item would buy them. */
.ock-freebar { margin-top: 14px; }

.ock-freebar-text { font-size: 12.5px; color: var(--ock-text); margin-bottom: 6px; }

.ock-freebar-done .ock-freebar-text { color: var(--ock-accent); font-weight: 600; }

.ock-freebar-track {
    height: 6px;
    border-radius: 3px;
    background: var(--ock-bg-field);
    overflow: hidden;
}

.ock-freebar-track i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--ock-accent);
    transition: width 0.3s;
}

/* ---------- share cart ---------- */

/* Last line of the summary card. A quiet link on purpose: the order button
   above it is the one thing on this screen that should look like a button. */
.ock-share { margin-top: 14px; text-align: center; }

.ock-share-btn { font-size: 13px; color: var(--ock-text-soft); text-decoration-color: var(--ock-border); }

.ock-share-btn:hover { color: var(--ock-accent); opacity: 1; }

.ock-share-btn:disabled { opacity: 0.6; cursor: default; }

.ock-share-panel {
    margin-top: 10px;
    padding: 14px;
    background: var(--ock-bg-field);
    border: 1px solid var(--ock-border);
    border-radius: calc(var(--ock-radius) - 4px);
}

.ock-share-qr { line-height: 0; margin-bottom: 10px; }

.ock-share-qr svg { width: 132px; height: 132px; }

.ock-share-url {
    font-size: 11.5px;
    color: var(--ock-text-soft);
    word-break: break-all;
    margin-bottom: 10px;
}

/* Full width: it is the only action in the panel, and the summary column is
   ~250px wide - «Скопировать ссылку» wrapped in anything narrower. */
.ock-share-copy {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--ock-accent);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.ock-share-hint {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--ock-text-soft);
    margin-top: 10px;
}

.ock-share-err { color: var(--ock-danger); font-size: 13px; text-align: center; }

/* ---------- states / misc ---------- */

.ock-loading-block { opacity: 0.45; pointer-events: none; transition: opacity 0.15s; }

.ock-error {
    font-size: 13px;
    color: var(--ock-danger);
}

/* Stock / minimum problems on top of the order summary. */
.ock-cart-problems {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 0 12px;
    line-height: 1.45;
}

.ock-form-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
}

.ock-login-card { margin-bottom: 18px; }
/* Block borrowed from a social-login module: it brings its own styling, we only
   give it the card and keep its buttons from overflowing on a narrow screen. */
.ock-social-card { margin-bottom: 18px; }
.ock-social-card img, .ock-social-card svg { max-width: 100%; }

.ock-login-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

@media (max-width: 639px) {
    .ock-login-fields { grid-template-columns: 1fr; }
}

/* Row of its own under email/password/button, so the button stays aligned. */
.ock-login-forgot { grid-column: 1 / -1; margin-top: -4px; font-size: 13px; }

/* One note for every delivery method, right under the section title. */
.ock-shipping-note { margin: 0 0 14px; }

/* «Файл» custom field: a button, the chosen file, a hint. The real file input is
   visually hidden but stays focusable through its label. */
.ock-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ock-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ock-file-btn { margin: 0; cursor: pointer; }
.ock-file-input:focus-visible + .ock-file-btn { box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25); }
.ock-file-name { font-size: 14px; color: var(--ock-text); word-break: break-all; }
.ock-file-name:empty { display: none; }
.ock-file-remove { font-size: 13px; }
/* Dimmed while uploading, still clickable: a new pick replaces the one on its way. */
.ock-file.ock-file-busy .ock-file-btn { opacity: 0.6; }
/* ".ock-field label" styles field captions; the button is a label too. The page
   prefix outranks the dark-theme caption rule further down, which would paint the
   text in the button's own colour. */
.ocheckout-page .ock-field.ock-field-file label.ock-file-btn { display: inline-flex; align-items: center; margin: 0; color: #fff; font-size: 14px; font-weight: 400; }
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page:not(.ock-skin-3):not(.ock-skin-4) .ock-field.ock-field-file label.ock-file-btn { color: #111827; }

.ock-payment-confirm { max-width: 760px; }

.ock-pay-wait { display: flex; justify-content: center; padding: 18px 0 6px; }

.ock-pay-wait-spin {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--ock-accent, #2f6fed);
    border-radius: 50%;
    animation: ock-spin 0.7s linear infinite;
}

/* suggestions dropdown (DaData) */

.ock-suggest {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--ock-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    overflow: hidden;
}

.ock-suggest-item {
    padding: 9px 13px;
    font-size: 13.5px;
    cursor: pointer;
}

.ock-suggest-item:hover, .ock-suggest-item.ock-hover { background: var(--ock-bg-field); }

/* ---------- simplified registration page ---------- */

.ock-auth-wrap { display: flex; justify-content: center; }

.ock-auth-card {
    width: 100%;
    max-width: 560px;
    padding: 30px;
    margin: 16px 0 8px;
}

.ock-auth-title { font-size: 24px; margin: 0 0 6px; }

.ock-auth-intro {
    font-size: 14px;
    color: var(--ock-text-soft);
    margin: 0 0 20px;
}

.ock-auth-card .ock-btn-primary { margin-top: 16px; }

.ock-auth-alt {
    text-align: center;
    font-size: 13.5px;
    color: var(--ock-text-soft);
    margin-top: 14px;
}

/* mobile niceties */

@media (max-width: 639px) {
    .ock-card { padding: 16px; }
    .ock-title { font-size: 23px; }
    .ock-input { font-size: 16px; } /* prevents iOS zoom */
}

/* v2: live validation typo hint */
.ocheckout-page .ock-typo-hint {
    display: inline-block; border: none; background: none; cursor: pointer;
    color: var(--ock-accent); font-size: 12.5px; padding: 4px 0 0; text-align: left;
    text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px;
}
.ocheckout-page .ock-typo-hint:hover { opacity: .8; }

/* v2: express payment buttons */
.ocheckout-page .ock-express { margin-bottom: 14px; }
.ocheckout-page .ock-express-title {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    color: #6b7280; margin-bottom: 8px;
}
.ocheckout-page .ock-express-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ocheckout-page .ock-express-btn {
    flex: 1 1 140px; margin: 0; cursor: pointer; text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: var(--ock-radius, 12px); padding: 13px 16px; font-weight: 600; font-size: 14.5px;
    background: #fff; transition: border-color .15s, box-shadow .15s; position: relative;
}
.ocheckout-page .ock-express-btn input { position: absolute; opacity: 0; pointer-events: none; }
.ocheckout-page .ock-express-btn:hover { border-color: #c7cbd1; }
.ocheckout-page .ock-express-btn.ock-express-active,
.ocheckout-page .ock-express-btn.ock-method-active {
    border-color: var(--ock-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ock-accent) 18%, transparent);
}

/* v2: trust blocks + payment badges */
.ocheckout-page .ock-trust { margin-top: 14px; display: grid; gap: 8px; }
.ocheckout-page .ock-trust-item {
    display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #4b5563; line-height: 1.45;
}
.ocheckout-page .ock-trust-icon { flex: 0 0 auto; }
.ocheckout-page .ock-payicons { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.ocheckout-page .ock-payicon {
    display: inline-block; border: 1px solid #e5e7eb; border-radius: 6px; padding: 3px 9px;
    font-size: 11.5px; font-weight: 700; color: #6b7280; letter-spacing: .02em; background: #fafbfc;
}

/* custom HTML block under the payment badges */
.ocheckout-page .ock-summary-html { margin-top: 14px; font-size: 13px; color: #374151; line-height: 1.5; }

/* recommended (related) products */
.ocheckout-page .ock-related { margin: 14px 0; }
.ocheckout-page .ock-related-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: #6b7280; margin-bottom: 10px;
}
.ocheckout-page .ock-related-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f5f6f8; }
/* The divider separates items, so the first one must not draw it under the title. */
.ocheckout-page .ock-related-title + .ock-related-item { border-top: none; }
.ocheckout-page .ock-related-thumb { flex: 0 0 auto; }
.ocheckout-page .ock-related-thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; display: block; }
.ocheckout-page .ock-related-body { flex: 1 1 auto; min-width: 0; }
.ocheckout-page .ock-related-name {
    display: block; font-size: 13px; font-weight: 600; color: #1f2937; text-decoration: none;
    line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ocheckout-page .ock-related-name:hover { color: var(--ock-accent); }
.ocheckout-page .ock-related-price { font-size: 13px; font-weight: 700; color: #111827; }
.ocheckout-page .ock-related-add {
    flex: 0 0 auto; width: 20px; height: 20px; border-radius: 8px; cursor: pointer;
    border: none; background: #fff; color: var(--ock-accent);
    font-size: 12px; font-weight: 600; line-height: 1; text-align: center; text-decoration: none;
    display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.ocheckout-page .ock-related-add:hover { background: var(--ock-accent); color: #fff; }
.ocheckout-page .ock-related-add:disabled { opacity: .5; cursor: default; }

/* minimum order amount */
.ocheckout-page .ock-minorder-warn {
    margin-top: 14px; padding: 11px 14px; border-radius: var(--ock-radius, 10px);
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
    font-size: 13px; font-weight: 600; line-height: 1.45; text-align: center;
}
.ocheckout-page #ock-confirm-btn:disabled,
.ocheckout-page #ock-confirm-btn.ock-disabled { opacity: .55; cursor: not-allowed; }

/* v2: radio pill group (payer types etc.) */
.ocheckout-page .ock-radio-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ocheckout-page .ock-radio-pill { margin: 0; cursor: pointer; }
.ocheckout-page .ock-radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ocheckout-page .ock-radio-pill span {
    display: inline-block; padding: 9px 16px; border-radius: calc(var(--ock-radius) - 2px);
    border: 1.5px solid #e5e7eb; background: #fff; font-size: 13.5px; font-weight: 500;
    color: #374151; transition: all .15s;
}
.ocheckout-page .ock-radio-pill input:checked + span {
    border-color: var(--ock-accent); color: var(--ock-accent);
    background: color-mix(in srgb, var(--ock-accent) 7%, #fff);
    font-weight: 600;
}

/* v2: order bumps */
.ocheckout-page .ock-bumps {
    margin: 14px 0; border: 1.5px dashed color-mix(in srgb, var(--ock-accent) 45%, #e5e7eb);
    border-radius: var(--ock-radius); padding: 12px 14px; background: color-mix(in srgb, var(--ock-accent) 3%, #fff);
}
.ocheckout-page .ock-bumps-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ock-accent); margin-bottom: 10px;
}
.ocheckout-page .ock-bump { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0 0 10px; }
.ocheckout-page .ock-bump:last-child { margin-bottom: 0; }
.ocheckout-page .ock-bump input { position: absolute; opacity: 0; pointer-events: none; }
.ocheckout-page .ock-bump-box {
    flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid #d1d5db; border-radius: 6px;
    background: #fff; position: relative; transition: all .15s;
}
.ocheckout-page .ock-bump input:checked + .ock-bump-box { background: var(--ock-accent); border-color: var(--ock-accent); }
.ocheckout-page .ock-bump input:checked + .ock-bump-box::after {
    content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ocheckout-page .ock-bump-link { display: block; flex: none; line-height: 0; }
.ocheckout-page .ock-bump-thumb { width: 44px; height: 44px; border-radius: 8px; border: 1px solid #e5e7eb; object-fit: cover; }
.ocheckout-page .ock-bump-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ocheckout-page .ock-bump-title { font-size: 13.5px; font-weight: 600; color: #1f2937; line-height: 1.3; }
.ocheckout-page a.ock-bump-title { text-decoration: none; }
.ocheckout-page a.ock-bump-title:hover { text-decoration: underline; }
.ocheckout-page .ock-bump-price { font-size: 13px; color: #374151; font-weight: 600; }
.ocheckout-page .ock-bump-price s { color: #9ca3af; font-weight: 400; margin: 0 2px; }
.ocheckout-page .ock-bump-price em {
    font-style: normal; background: #dc2626; color: #fff; font-size: 10.5px; font-weight: 700;
    border-radius: 5px; padding: 1px 5px; vertical-align: 1px;
}

/* v2: paid extra options */
.ocheckout-page .ock-extras {
    margin: 14px 0; border: 1px solid #eceef2; border-radius: var(--ock-radius);
    padding: 12px 14px; background: #fff;
}
.ocheckout-page .ock-extras-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: #6b7280; margin-bottom: 10px;
}
.ocheckout-page .ock-extra { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0 0 10px; }
.ocheckout-page .ock-extra:last-child { margin-bottom: 0; }
.ocheckout-page .ock-extra input.ock-extra-check { position: absolute; opacity: 0; pointer-events: none; }
.ocheckout-page .ock-extra-box {
    flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid #d1d5db; border-radius: 6px;
    background: #fff; position: relative; transition: all .15s;
}
.ocheckout-page .ock-extra input.ock-extra-check:checked + .ock-extra-box { background: var(--ock-accent); border-color: var(--ock-accent); }
.ocheckout-page .ock-extra input.ock-extra-check:checked + .ock-extra-box::after {
    content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ocheckout-page .ock-extra input.ock-extra-check:disabled + .ock-extra-box { opacity: .65; }
.ocheckout-page .ock-extra-icon { width: 34px; height: 34px; border-radius: 7px; object-fit: contain; flex: 0 0 auto; }
.ocheckout-page .ock-extra-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ocheckout-page .ock-extra-title { font-size: 13.5px; font-weight: 600; color: #1f2937; line-height: 1.3; }
.ocheckout-page .ock-extra-sub { font-size: 12px; color: #6b7280; line-height: 1.3; }
/* Quantity stepper matches the cart ("Ваш заказ") style; height kept at 26px. */
.ocheckout-page .ock-extra-qty { display: inline-flex; align-items: center; gap: 0; flex: 0 0 auto; border: 1px solid var(--ock-border); border-radius: 8px; overflow: hidden; opacity: .55; transition: opacity .15s; }
.ocheckout-page .ock-extra.ock-extra-on .ock-extra-qty { opacity: 1; }
.ocheckout-page .ock-extra-qty-btn {
    width: 28px; height: 26px; border: none; background: #fff; color: var(--ock-text-soft);
    font-size: 15px; line-height: 1; cursor: pointer; padding: 0;
}
.ocheckout-page .ock-extra-qty-btn:hover { background: var(--ock-bg-field); color: var(--ock-text); }
.ocheckout-page .ock-extra-qty-input {
    width: 34px; height: 26px; border: none; text-align: center; background: #fff; outline: none;
    font-size: 13px; color: var(--ock-text); padding: 0; -moz-appearance: textfield;
}
.ocheckout-page .ock-extra-price { font-size: 13px; font-weight: 700; color: #111827; flex: 0 0 auto; white-space: nowrap; }

/* v2: phone verification + code login */
.ocheckout-page .ock-phone-verify { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ocheckout-page .ock-phone-verify .ock-btn { padding: 8px 14px; font-size: 13px; }
.ocheckout-page .ock-pv-row { display: inline-flex; gap: 8px; align-items: center; }
.ocheckout-page .ock-pv-code { max-width: 130px; letter-spacing: .2em; text-align: center; }
.ocheckout-page .ock-pv-ok { color: #16a34a; font-size: 13px; font-weight: 600; }
.ocheckout-page .ock-pv-msg { color: #dc2626; font-size: 12.5px; }
.ocheckout-page .ock-login-mode { margin-top: 10px; font-size: 13px; }

/* v2: delivery slots */
.ocheckout-page .ock-slots { margin-top: 14px; }
.ocheckout-page .ock-slots-title { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.ocheckout-page .ock-slot-days { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ocheckout-page .ock-slot-intervals { display: flex; gap: 8px; flex-wrap: wrap; }
.ocheckout-page .ock-slot-pill { margin: 0; cursor: pointer; }
.ocheckout-page .ock-slot-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ocheckout-page .ock-slot-pill span {
    display: inline-block; padding: 8px 14px; border-radius: calc(var(--ock-radius) - 2px);
    border: 1.5px solid #e5e7eb; background: #fff; font-size: 13px; font-weight: 500; color: #374151;
    transition: all .15s; white-space: nowrap;
}
.ocheckout-page .ock-slot-pill input:checked + span { border-color: var(--ock-accent); color: var(--ock-accent); font-weight: 600; }
.ocheckout-page .ock-slot-full span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

/* v2: map delivery */
.ocheckout-page #ock-route-wrap { margin-top: 14px; }
.ocheckout-page .ock-route-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ocheckout-page .ock-route-toolbar .ock-btn { padding: 9px 14px; font-size: 13px; }
.ocheckout-page .ock-route-hint { font-size: 12.5px; color: #6b7280; }
.ocheckout-page #ock-route-map { height: 320px; border-radius: var(--ock-radius); overflow: hidden; border: 1px solid #e5e7eb; }
@media (max-width: 640px) { .ocheckout-page #ock-route-map { height: 260px; } }

/* v2: pickup points */
.ocheckout-page #ock-pvz-wrap { margin-top: 14px; }
.ocheckout-page .ock-pvz-selected { font-size: 13px; color: #16a34a; font-weight: 600; }
.ocheckout-page #ock-pvz-map { border-radius: var(--ock-radius); overflow: hidden; }
.ocheckout-page .ock-apiship-geonote { margin-top: 8px; font-size: 13px; line-height: 1.4; color: #a15c00; background: #fff8e6; border: 1px solid #f0d999; border-radius: 6px; padding: 8px 10px; }

/* ApiShip: ПВЗ/courier mode toggle + address input shown on carrier selection */
/* "Способ доставки" block: the carriers behind one control instead of a row each.
   No frame of its own - the card heading above already names it, and a second
   rounded box inside the card would only read as an unexplained nested panel.
   No bottom margin either - the card heading and the block are one thing. The
   store's own method rows, when there are any, bring their own gap. */
.ocheckout-page .ock-udelbox { margin: 0; }
/* The gap goes on the first method ROW, not on the container: the container is
   never :empty (it always holds template whitespace), so a rule on it would put
   14px back under the block on a store whose only methods are the carriers. */
.ocheckout-page .ock-udelbox + .ock-methods > :first-child { margin-top: 14px; }
.ocheckout-page .ock-udelbox-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ocheckout-page .ock-udelbox-btns .ock-btn { flex: 1 1 200px; }
.ocheckout-page .ock-udelbox-sum { display: flex; flex-direction: column; gap: 3px; }
.ocheckout-page .ock-udelbox-head { display: flex; align-items: center; gap: 8px; }
.ocheckout-page .ock-udelbox-head img { max-height: 20px; width: auto; }
.ocheckout-page .ock-udelbox-addr { font-size: 14px; opacity: .85; }
.ocheckout-page .ock-udelbox-when { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ocheckout-page .ock-udelbox-when span { opacity: .85; }
.ocheckout-page .ock-udelbox-edit { margin-top: 10px; }

/* ------------------------------------------- unified delivery screen (v3) */
/* Full-screen picker: every carrier's points at once, list + map side by side.
   Lives inside .ocheckout-page so the tokens, skins and dark-mode chain apply. */
html.ock-udel-lock, html.ock-udel-lock body { overflow: hidden; }

.ocheckout-page .ock-udel { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; }
.ocheckout-page .ock-udel-back { position: absolute; inset: 0; background: rgba(15, 17, 23, .55); }
.ocheckout-page .ock-udel-panel { position: relative; display: flex; flex-direction: column; width: min(1440px, 96vw); height: min(88vh, 900px); background: var(--ock-card, #fff); color: inherit; border-radius: var(--ock-radius, 10px); box-shadow: 0 24px 64px rgba(0, 0, 0, .3); overflow: hidden; }

.ocheckout-page .ock-udel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ock-border, #e3e6ea); }
.ocheckout-page .ock-udel-title { font-size: 17px; }
.ocheckout-page .ock-udel-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 0 4px; }
.ocheckout-page .ock-udel-x:hover { opacity: 1; }

.ocheckout-page .ock-udel-tabs { display: flex; padding: 12px 18px 0; }
.ocheckout-page .ock-udel-bar { display: flex; gap: 8px; padding: 12px 18px; }
.ocheckout-page .ock-udel-bar .ock-input { margin: 0; }
/* The city box sits in its own positioned wrapper so its DaData dropdown anchors
   to the input. A shrink-to-fit wrapper would size itself from the input's
   min-content, which is narrower than the box used to be - so state the width. */
.ocheckout-page .ock-udel-cityw { position: relative; flex: 0 0 240px; max-width: 100%; }
.ocheckout-page .ock-udel-cityw .ock-input { width: 100%; }
.ocheckout-page .ock-udel-city { max-width: 240px; }

.ocheckout-page .ock-udel-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.ocheckout-page .ock-udel-chip { border: 1px solid var(--ock-border, #e3e6ea); background: transparent; color: inherit; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.ocheckout-page .ock-udel-chip-on { border-color: var(--ock-accent, #2f6fed); background: var(--ock-accent, #2f6fed); color: #fff; }
.ocheckout-page .ock-udel-sep { width: 1px; align-self: stretch; background: var(--ock-border, #e3e6ea); margin: 2px 4px; }

.ocheckout-page .ock-udel-body { display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; border-top: 1px solid var(--ock-border, #e3e6ea); }
.ocheckout-page .ock-udel-list { flex: 0 0 44%; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
/* min-height + overflow: the map is a third-party widget that sizes itself in
   pixels; without this it paints past the row and slides under the footer. */
.ocheckout-page .ock-udel-map { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }

.ocheckout-page .ock-udel-card { display: flex; gap: 12px; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--ock-border, #e3e6ea); border-radius: var(--ock-radius, 8px); cursor: pointer; }
.ocheckout-page .ock-udel-card-on { border-color: var(--ock-accent, #2f6fed); box-shadow: 0 0 0 1px var(--ock-accent, #2f6fed) inset; }
.ocheckout-page .ock-udel-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ocheckout-page .ock-udel-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.ocheckout-page .ock-udel-carrier { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .8; }
.ocheckout-page .ock-udel-carrier img { max-height: 16px; width: auto; }
.ocheckout-page .ock-udel-addrw { position: relative; }
.ocheckout-page .ock-udel-addr { font-size: 13px; opacity: .8; }
/* re-pricing: the cards stay in place and stay clickable, they just fade */
.ocheckout-page .ock-udel-busy { opacity: .5; transition: opacity .12s; }
.ocheckout-page .ock-udel-price { font-weight: 600; white-space: nowrap; }
.ocheckout-page .ock-udel-days { font-size: 12px; opacity: .7; white-space: nowrap; }
.ocheckout-page .ock-udel-empty,
.ocheckout-page .ock-udel-more,
.ocheckout-page .ock-udel-hint { font-size: 13px; opacity: .75; padding: 8px 4px; }

/* flex: 0 0 auto - the footer holds the only way to confirm a choice, so it must
   never be the row the browser decides to compress. */
.ocheckout-page .ock-udel-foot { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--ock-border, #e3e6ea); }
.ocheckout-page .ock-udel-sel { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocheckout-page .ock-udel-foot .ock-btn { flex: 0 0 auto; }

.ocheckout-page .ock-udel-chosen { margin-top: 8px; font-size: 13px; }
#ock-udel-wrap { margin: 10px 0 4px; }

/* map/list switch: phone only, shown by the media query below */
.ocheckout-page .ock-udel-mview { display: none; }

@media (max-width: 767px) {
  /* 100vh on iOS is TALLER than what you can see - the browser's own bottom bar
     sits on top of it, and it covered the "Доставить сюда" button. dvh tracks the
     visible area; the vh line stays as the fallback for older browsers. */
  .ocheckout-page .ock-udel-panel { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
  /* …and when JS pinned the overlay to the visual viewport, follow THAT: on
     iOS it is the only measure that excludes the floating browser bar. */
  .ocheckout-page .ock-udel-vv .ock-udel-panel { height: 100%; }
  .ocheckout-page .ock-udel-body { flex-direction: column; }
  .ocheckout-page .ock-udel-list { flex: 1 1 auto; }
  .ocheckout-page .ock-udel-map { flex: 0 0 40%; min-height: 200px; order: -1; }
  .ocheckout-page .ock-udel-bar { flex-direction: column; }
  .ocheckout-page .ock-udel-city { max-width: none; }
  /* stacked: a 240px flex-basis would be a HEIGHT once the bar turns into a column */
  .ocheckout-page .ock-udel-cityw { flex: 0 0 auto; width: 100%; }
  /* the row scrolls sideways; without the padding the scrollbar ate the labels */
  .ocheckout-page .ock-udel-chips { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; flex: 0 0 auto; padding-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ocheckout-page .ock-udel-chips::-webkit-scrollbar { display: none; }
  .ocheckout-page .ock-udel-chip { white-space: nowrap; }
  /* the home indicator / browser bar lives under the footer on iOS */
  .ocheckout-page .ock-udel-foot { position: sticky; bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--ock-card, #fff); }
  /* the price cell may hold a whole sentence ("цену уточним…") - let it wrap and
     cap it, or it squeezes the address column to one word per line */
  .ocheckout-page .ock-udel-card-side { max-width: 42%; }

  .ocheckout-page .ock-udel-mview { display: flex; padding: 10px 18px 0; }
  .ocheckout-page .ock-udel-panel:not(.ock-udel-mv-map) .ock-udel-map { display: none !important; }
  .ocheckout-page .ock-udel-panel.ock-udel-mv-map .ock-udel-list { display: none; }
  .ocheckout-page .ock-udel-panel.ock-udel-mv-map .ock-udel-map { flex: 1 1 auto; min-height: 0; }
}

/* folded shipping methods: one row that opens the long tail */
.ocheckout-page .ock-ship-group { display: flex; flex-direction: column; gap: 8px; }
.ocheckout-page .ock-ship-group-btn { text-align: left; background: none; border: 1px dashed var(--ock-border, #e3e6ea); border-radius: var(--ock-radius, 8px); padding: 12px 14px; cursor: pointer; color: inherit; font: inherit; }
.ocheckout-page .ock-ship-group-btn:hover { border-color: var(--ock-accent, #2f6fed); }
.ocheckout-page .ock-ship-group-btn::after { content: ' \25BE'; opacity: .6; }
.ocheckout-page .ock-ship-group-open .ock-ship-group-btn::after { content: ' \25B4'; }

/* A group that is always open: a heading above the list, not a button. */
.ocheckout-page .ock-ship-group-head { margin: 6px 0 2px; }
.ocheckout-page .ock-ship-group-list { display: flex; flex-direction: column; gap: 8px; }

/* a real price is one token and must not wrap; the "no price" sentence must */
.ocheckout-page .ock-udel-price-na { white-space: normal; font-weight: 400; font-size: 12px; opacity: .75; text-align: right; }

/* pickup points without a map: the same list the balloons would have shown */
.ocheckout-page .ock-apiship-list-wrap { display: flex; flex-direction: column; gap: 8px; }
.ocheckout-page .ock-apiship-offline { font-size: 13px; line-height: 1.4; color: #a15c00; background: #fff8e6; border: 1px solid #f0d999; border-radius: 6px; padding: 8px 10px; }
.ocheckout-page .ock-apiship-list { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.ocheckout-page .ock-apiship-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--ock-border, #e3e6ea); border-radius: var(--ock-radius, 8px); }
.ocheckout-page .ock-apiship-list-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ocheckout-page .ock-apiship-list-text b { font-size: 14px; }
.ocheckout-page .ock-apiship-list-text span { font-size: 13px; opacity: .75; }
.ocheckout-page .ock-apiship-list-row .ock-btn { flex: 0 0 auto; }
.ocheckout-page .ock-pt-info { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; font-size: 12px; opacity: .8; }
.ocheckout-page .ock-pt-type { font-weight: 600; opacity: .9; }
.ocheckout-page .ock-pt-note { font-style: italic; }
.ock-pt-info { display: block; margin-top: 4px; font-size: 12px; }
.ock-pt-info span { display: block; }

.ocheckout-page .ock-apiship-list-empty,
.ocheckout-page .ock-apiship-list-more { font-size: 13px; opacity: .75; padding: 6px 2px; }

.ocheckout-page .ock-apiship-addr-wrap { margin: 4px 0 12px; }
.ocheckout-page .ock-apiship-addr-row { display: flex; align-items: stretch; gap: 8px; }
.ocheckout-page .ock-apiship-addr-row .ock-input { flex: 1 1 auto; width: 100%; min-width: 0; }
.ocheckout-page .ock-apiship-addr-find { flex: 0 0 auto; padding: 9px 18px; font-size: 13px; }
.ocheckout-page .ock-apiship-mode-toggle { display: flex; margin-bottom: 10px; }
.ocheckout-page .ock-seg {
    flex: 1 1 0;
    padding: 9px 12px;
    border: 1px solid var(--ock-border, #e5e7eb);
    background: #fff;
    color: var(--ock-text, #374151);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.ocheckout-page .ock-seg:first-child { border-radius: var(--ock-radius, 8px) 0 0 var(--ock-radius, 8px); }
.ocheckout-page .ock-seg:last-child { border-radius: 0 var(--ock-radius, 8px) var(--ock-radius, 8px) 0; border-left: 0; }
.ocheckout-page .ock-seg-active { background: var(--ock-accent); border-color: var(--ock-accent); color: #fff; }
@media (max-width: 640px) { .ocheckout-page .ock-seg { padding: 9px 8px; font-size: 12.5px; } }

/* v2: multi-step flow */
.ocheckout-page.ock-flow-steps .ock-main > .ock-card { display: none; }
.ocheckout-page.ock-flow-steps .ock-main > .ock-card.ock-step-active { display: block; }
.ocheckout-page .ock-step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.ocheckout-page .ock-step-nav .ock-btn { padding: 11px 22px; }
.ocheckout-page .ock-step-nav .ock-btn-primary:only-child { margin-left: auto; }

/* v2: route delivery-address field */
.ocheckout-page .ock-route-addr { margin-bottom: 16px; }
.ocheckout-page #ock-route-wrap .ock-route-toolbar { margin-bottom: 12px; }

/* =========================================================================
   CHECKOUT SKINS (ocheckout_skin 1-5). Root class .ock-skin-N on #ocheckout.
   Skin 1 = baseline (no rules). Skins restyle on the SAME DOM (CSS only) so
   every feature keeps working. They do NOT redefine --ock-accent (the inline
   root style wins); skins that need a fixed brand colour pin it via explicit
   background/border-color on buttons/active states, never via the token.
   ========================================================================= */

/* Skin 1 (baseline): hide the numbered step circles. */
.ocheckout-page.ock-skin-1 .ock-step { display: none; }

/* Active express ("быстрая оплата") buttons: no shadow (all skins). */
.ocheckout-page .ock-express-btn.ock-express-active,
.ocheckout-page .ock-express-btn.ock-method-active { box-shadow: none; }

/* ============ SKIN 2: Shopping cart (soft) ============ */
.ocheckout-page.ock-skin-2 {
    --ock-radius: 22px !important; /* beats the inline root --ock-radius */
    --ock-bg-field: #f4f5f7;
    background: #f3f4f6;
    padding: 18px 18px 40px;
    border-radius: 28px;
}
.ocheckout-page.ock-skin-2 .ock-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
@media (max-width: 991px) { .ocheckout-page.ock-skin-2 .ock-grid { grid-template-columns: minmax(0, 1fr); } }
.ocheckout-page.ock-skin-2 .ock-card { border: none; box-shadow: 0 6px 24px rgba(17, 24, 39, 0.06); padding: 26px; }
.ocheckout-page.ock-skin-2 .ock-card-title { text-transform: lowercase; font-weight: 700; letter-spacing: -0.01em; }
.ocheckout-page.ock-skin-2 .ock-step { display: none; }
.ocheckout-page.ock-skin-2 .ock-title { text-transform: lowercase; }
.ocheckout-page.ock-skin-2 .ock-btn-primary { border-radius: 999px; height: 54px; }
.ocheckout-page.ock-skin-2 .ock-btn-secondary { border-radius: 999px; }
.ocheckout-page.ock-skin-2 .ock-method { border-radius: 18px; padding: 16px 18px; border-color: #eceef2; }
.ocheckout-page.ock-skin-2 .ock-input { border-radius: 14px; }
.ocheckout-page.ock-skin-2 .ock-summary-card { background: #fffdf8; }

/* ============ SKIN 3: Clothing (classic) ============ */
.ocheckout-page.ock-skin-3 {
    --ock-radius: 8px !important; /* beats the inline root --ock-radius */
    --ock-bg-field: #ffffff;
    background: #f9fafb;
}
.ocheckout-page.ock-skin-3 .ock-card { border: 1px solid #e5e7eb; box-shadow: none; }
.ocheckout-page.ock-skin-3 .ock-card-title { text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.ocheckout-page.ock-skin-3 .ock-step { border-radius: 4px; background: #eff6ff; color: #0369a1; }
.ocheckout-page.ock-skin-3 #ock-shipping-block .ock-methods {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (max-width: 639px) { .ocheckout-page.ock-skin-3 #ock-shipping-block .ock-methods { grid-template-columns: minmax(0, 1fr); } }
.ocheckout-page.ock-skin-3 #ock-shipping-block .ock-method {
    flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px;
    border: 2px solid #e5e7eb; border-radius: 8px;
}
.ocheckout-page.ock-skin-3 #ock-shipping-block .ock-method-active { border-color: #0369a1; background: #eff6ff; box-shadow: none; }
/* the address+map / route wraps are repositioned INTO .ock-methods by JS - span
   the full grid width so the map is not squeezed into one carrier-grid column */
.ocheckout-page.ock-skin-3 #ock-shipping-block .ock-methods > #ock-pvz-wrap,
.ocheckout-page.ock-skin-3 #ock-shipping-block .ock-methods > #ock-route-wrap { grid-column: 1 / -1; }
.ocheckout-page.ock-skin-3 .ock-input { border: 1px solid #d1d5db; background: #fff; }
.ocheckout-page.ock-skin-3 .ock-input:focus { border-color: #0369a1; }
.ocheckout-page.ock-skin-3 .ock-summary-card { border: 2px solid #0369a1; box-shadow: none; }
.ocheckout-page.ock-skin-3 .ock-btn-primary { background: #0369a1; border-radius: 6px; }
.ocheckout-page.ock-skin-3 .ock-btn-secondary { background: #0369a1; }
.ocheckout-page.ock-skin-3 .ock-seg-active { background: #0369a1; border-color: #0369a1; }

/* ============ SKIN 4: Marketplace (bold) ============ */
.ocheckout-page.ock-skin-4 {
    --ock-radius: 14px !important; /* beats the inline root --ock-radius */
    --ock-bg-field: #f2f4f7;
    background: transparent;
    font-size: 14px;
}
.ocheckout-page.ock-skin-4 .ock-main { display: flex; flex-direction: column; }
.ocheckout-page.ock-skin-4 #ock-section-payment { order: -1; }
.ocheckout-page.ock-skin-4 #ock-section-contact { order: 0; }
.ocheckout-page.ock-skin-4 #ock-section-shipping { order: 1; }
.ocheckout-page.ock-skin-4 .ock-card { border: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); padding: 16px 18px; border-radius: 14px; }
.ocheckout-page.ock-skin-4 .ock-card-title { font-size: 16px; font-weight: 700; }
.ocheckout-page.ock-skin-4 .ock-step { display: none; }
.ocheckout-page.ock-skin-4 .ock-summary-card { box-shadow: 0 4px 16px rgba(0, 91, 255, 0.10); }
.ocheckout-page.ock-skin-4 .ock-btn-primary { background: #005bff; height: 56px; font-size: 16px; font-weight: 700; border-radius: 12px; }
.ocheckout-page.ock-skin-4 .ock-btn-secondary { background: #005bff; }
.ocheckout-page.ock-skin-4 .ock-method { padding: 12px 14px; border-color: #e5e7eb; }
.ocheckout-page.ock-skin-4 .ock-method-active { border-color: #005bff; background: #f0f6ff; box-shadow: 0 0 0 1px #005bff; }
.ocheckout-page.ock-skin-4 .ock-input { border-radius: 10px; }
.ocheckout-page.ock-skin-4 .ock-seg-active { background: #005bff; border-color: #005bff; }
.ocheckout-page.ock-skin-4 .ock-total-grand .ock-total-value { color: #005bff; }

/* ============ SKIN 5: Minimal (modern) ============ */
.ocheckout-page.ock-skin-5 {
    --ock-radius: 16px !important; /* beats the inline root --ock-radius */
    --ock-bg-field: #f7f8fa;
    --ock-border: #eef0f3;
    background: #ffffff;
}
.ocheckout-page.ock-skin-5 .ock-card { border: 1px solid #f0f1f4; box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05); padding: 24px; }
.ocheckout-page.ock-skin-5 .ock-card-title { font-weight: 600; letter-spacing: -0.01em; }
.ocheckout-page.ock-skin-5 .ock-step { background: #f3f4f6; color: #6b7280; font-weight: 700; }
.ocheckout-page.ock-skin-5 .ock-aside { animation: ock5-fade 0.45s ease-out both; }
@keyframes ock5-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.ocheckout-page.ock-skin-5 .ock-input { border-radius: 12px; transition: border-color .25s, box-shadow .25s, background .25s; }
.ocheckout-page.ock-skin-5 .ock-method { border-radius: 14px; transition: border-color .2s, box-shadow .25s, transform .2s; }
.ocheckout-page.ock-skin-5 .ock-method:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, 0.10); transform: translateY(-1px); }
.ocheckout-page.ock-skin-5 .ock-btn-primary { border-radius: 12px; height: 52px; transition: filter .2s, box-shadow .25s, transform .15s; }
.ocheckout-page.ock-skin-5 .ock-btn-primary:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--ock-accent) 22%, transparent); transform: translateY(-1px); }
.ocheckout-page.ock-skin-5 .ock-summary-card { box-shadow: 0 4px 18px rgba(16, 24, 40, 0.07); }

/* City-first: separate "Город доставки" step + gate placeholder for methods */
.ocheckout-page .ock-gate-hint{padding:14px 16px;border:1px dashed rgba(0,0,0,.18);border-radius:var(--ock-radius,12px);color:#6b7280;text-align:center;font-size:14px}
.ocheckout-page .ock-gate-note{margin-top:8px;font-size:13px;color:#6b7280}
.ocheckout-page .ock-fields-locality{margin-top:4px}
/* City-first locality step: section heading already names the field -> hide its label */
.ocheckout-page .ock-fields-locality .ock-field > label{display:none}

/* ============================ dark mode ============================ */
/* Auto-follows the STORE's own dark switch (html[data-theme="dark"],
   [data-bs-theme="dark"], html/body .dark | .dark-mode). It is NOT keyed on
   prefers-color-scheme, so a light site never renders a dark checkout. On a
   store with no dark mode none of these selectors ever match, so the light
   theme stays byte-identical. */

:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page {
    --ock-text: #e6e8ee;
    --ock-text-soft: #99a2b2;
    --ock-border: #2c3546;
    --ock-bg-field: #151b26;
    --ock-dk-surface: #1b2231;
    --ock-dk-surface-2: #222c3d;
    --ock-dk-page: #10141d;
}

/* cards / panels / method rows / bumps / extras / segmented buttons */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-card,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-summary-card,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-method,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-bump,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-extra,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-related-add,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-seg {
    background: var(--ock-dk-surface);
    border-color: var(--ock-border);
    box-shadow: none;
    color: var(--ock-text);
}

/* inputs / textareas / selects */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-input,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-textarea,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page select.ock-select {
    background: var(--ock-bg-field);
    border-color: var(--ock-border);
    color: var(--ock-text);
}

:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-input:focus {
    background: var(--ock-dk-surface);
    border-color: var(--ock-accent);
}

:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-input::placeholder,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-textarea::placeholder {
    color: #6b7686;
}

/* labels / headings / soft text */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-field label,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-card-title,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-title {
    color: var(--ock-text);
}

/* step number badge (was a tint over #fff) */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-step {
    background: color-mix(in srgb, var(--ock-accent) 26%, var(--ock-dk-page));
}

/* selected shipping / payment method */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-method-active {
    background: color-mix(in srgb, var(--ock-accent) 20%, var(--ock-dk-page));
    border-color: var(--ock-accent);
    box-shadow: 0 0 0 1px var(--ock-accent);
}

:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-method-unavailable,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-method-unavailable .ock-method-radio {
    background: var(--ock-dk-surface-2);
    border-color: var(--ock-border);
}

/* qty steppers, secondary chips, small pills */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-qty-btn,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-qty-input,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-check-box {
    background: var(--ock-dk-surface-2);
    border-color: var(--ock-border);
    color: var(--ock-text);
}

/* dividers / thumbnails / map frame */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-related-item,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-bump-thumb,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page #ock-route-map,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page #ock-apiship-map {
    border-color: var(--ock-border);
}

/* invalid / error surfaces */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-input.ock-invalid {
    background: #2a1618;
    border-color: var(--ock-danger);
}

/* amber geo hint */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-apiship-geonote,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-apiship-offline {
    background: #2a2413;
    border-color: #4a3f1e;
    color: #e8c98a;
}

/* unified delivery screen */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-udel-panel {
    background: #171a21;
}
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-udel-back {
    background: rgba(0, 0, 0, .7);
}

/* skin overrides that hard-code light surfaces */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page.ock-skin-2 .ock-summary-card,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page.ock-skin-3 .ock-input,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page.ock-skin-4 .ock-card,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page.ock-skin-5 .ock-card {
    background: var(--ock-dk-surface);
    border-color: var(--ock-border);
}

/* "Дополнительные опции" block: it is a white card of its own -> match the dark
   surface and lighten its hard-coded dark title/price text. Also the recommended
   items price uses the same hard-coded dark color. */
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-extras {
    background: var(--ock-dk-surface);
    border-color: var(--ock-border);
}

:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-extras-title {
    color: var(--ock-text-soft);
    border-color: var(--ock-border);
}

:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-extra-title,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-extra-price,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-related-price,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-related-name,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-bump-title,
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-bump-price {
    color: var(--ock-text);
}

:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-extra-sub {
    color: var(--ock-text-soft);
}

:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-extra-box {
    background: var(--ock-dk-surface-2);
    border-color: var(--ock-border);
}

/* ---- «Определить по геопозиции» (cfg.geo) ---- */
.ocheckout-page .ock-geo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 13px; line-height: 1.3; }
.ocheckout-page .ock-geo-btn { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.ocheckout-page .ock-geo-btn span { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }
.ocheckout-page .ock-geo-btn:disabled { opacity: .6; cursor: default; }
.ocheckout-page .ock-geo-ico { flex: 0 0 auto; }
.ocheckout-page .ock-geo-msg { display: none; color: #6b7280; font-size: 12px; }
.ocheckout-page .ock-geo-msg.ock-geo-on { display: inline; }
.ocheckout-page .ock-geo-msg.ock-geo-err { color: var(--ock-danger); }
/* Unified delivery screen: an arrow inside the city box, the message under it. */
.ocheckout-page .ock-udel-cityw .ock-geo-icon { position: absolute; top: 0; right: 0; height: 100%; margin: 0; display: block; }
.ocheckout-page .ock-udel-cityw .ock-geo-icon .ock-geo-btn { height: 100%; padding: 0 10px; }
.ocheckout-page .ock-udel-cityw .ock-input { padding-right: 34px; }
.ocheckout-page .ock-udel-cityw .ock-geo-icon .ock-geo-msg.ock-geo-on { display: block; position: absolute; top: 100%; right: 0; width: 260px; max-width: 80vw; margin-top: 4px; padding: 6px 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; box-shadow: 0 6px 18px rgba(16,24,40,.12); z-index: 30; }
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-geo-msg { color: #9ca3af; }
:is(html[data-theme="dark"],[data-bs-theme="dark"],html.dark,body.dark,html.dark-mode,body.dark-mode) .ocheckout-page .ock-udel-cityw .ock-geo-icon .ock-geo-msg.ock-geo-on { background: var(--ock-dk-surface-2); border-color: var(--ock-border); }
