/* =====================================================================
   DlinkShop redesign 2026-11 — checkout (Simple: template/checkout/simplecheckout*.twig)
   The wrapper comes from template/common/simple_header.twig, which adds
   .dl-simplecheckout-page. Uses the variables from dl-header.css and the
   crumbs / page head from dl-page.css. Simple's own markup is unchanged.
   ===================================================================== */
.dl-simplecheckout-page { font-family: var(--dl-font); }

/* ---------- 1. "Спеціальна знижка для комплектів": compact horizontal cards ---------- */
.dl-simplecheckout-page .related-checkout-module {
    margin: 0 0 24px;
    padding: 16px 18px 18px;
    border-radius: 22px;
    background: var(--dl-gray-bg);
    font-family: var(--dl-font);
}
.dl-simplecheckout-page .related-checkout-module > h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--dl-ink);
    font-family: var(--dl-font);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.dl-simplecheckout-page .related-checkout-module > h4::before {
    content: "%";
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--dl-accent);
    color: var(--dl-ink);
    font-size: 14px;
    font-weight: 800;
}
.dl-simplecheckout-page .related-checkout-module > .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 !important;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}
.dl-simplecheckout-page .related-checkout-module .product-layout {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.dl-simplecheckout-page .related-checkout-module .product-thumb {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
        "img name name"
        "img price btn";
    align-items: center;
    gap: 4px 12px;
    height: 100%;
    margin: 0 !important;
    padding: 10px !important;
    border: 1.5px solid transparent !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color .15s;
}
.dl-simplecheckout-page .related-checkout-module .product-thumb:hover { border-color: var(--dl-accent) !important; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-image-wrap {
    grid-area: img;
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px;
    background: var(--dl-gray-bg);
    overflow: hidden;
}
.dl-simplecheckout-page .related-checkout-module .related-checkout-image-wrap > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-image-wrap img {
    width: auto !important;
    height: auto !important;
    max-width: 88%;
    max-height: 88%;
    margin: 0 !important;
    object-fit: contain;
    mix-blend-mode: multiply;
}
/* discount badge (−200 грн) as a small chip; the "Комплект" badge is said by the heading */
.dl-simplecheckout-page .related-checkout-module .related-checkout-badge {
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    right: auto !important;
    bottom: auto !important;
    max-width: none !important;
    overflow: visible !important;
    padding: 2px 5px !important;
    border-radius: 6px !important;
    background: var(--dl-accent) !important;
    color: var(--dl-ink) !important;
    font-family: var(--dl-font);
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em;
    text-overflow: clip !important;
    white-space: nowrap;
}
.dl-simplecheckout-page .related-checkout-module .related-checkout-badge:not(.related-checkout-badge-1) { display: none !important; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-badge-1::before { content: "\2212"; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-name-wrap { grid-area: name; align-self: end; min-width: 0; margin: 0 !important; padding: 0 !important; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-field-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}
.dl-simplecheckout-page .related-checkout-module .related-checkout-field-name a { color: var(--dl-ink) !important; text-decoration: none; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-field-name a:hover { color: var(--dl-link) !important; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-rating-wrap { display: none !important; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-price-wrap { grid-area: price; align-self: start; min-width: 0; margin: 0 !important; padding: 0 !important; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-price-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0 !important; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-price-lines > * {
    display: block;
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}
.dl-simplecheckout-page .related-checkout-module .related-checkout-field-current-price { color: #6B7380 !important; font-size: 11px !important; font-weight: 500 !important; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-final-price { color: var(--dl-ink) !important; font-size: 15px !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-button-wrap { grid-area: btn; align-self: end; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-add-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto !important;
    height: 34px;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--dl-accent) !important;
    color: var(--dl-ink) !important;
    font-family: var(--dl-font);
    font-size: 12px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}
.dl-simplecheckout-page .related-checkout-module .related-checkout-add-button .fa { font-size: 12px; color: inherit; }
.dl-simplecheckout-page .related-checkout-module .related-checkout-add-button:hover { background: var(--dl-ink) !important; color: #ffffff !important; }

/* ---------- 2. layout: blocks as numbered cards ---------- */
.dl-simplecheckout-page #content > .content-block {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.dl-simplecheckout-page #content > .content-block > .fsz-14.mb-3:empty { display: none; }
@media (min-width: 1024px) {
    .dl-simplecheckout-page .simplecheckout-step {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }
    .dl-simplecheckout-page .simplecheckout-step::before,
    .dl-simplecheckout-page .simplecheckout-step::after { display: none; }
    .dl-simplecheckout-page .simplecheckout-step > :not(.simplecheckout-left-column):not(.simplecheckout-right-column) { grid-column: 1 / -1; }
}
.dl-simplecheckout-page .simplecheckout-left-column,
.dl-simplecheckout-page .simplecheckout-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
@media (max-width: 1023.98px) {
    .dl-simplecheckout-page .simplecheckout-step { display: flex; flex-direction: column; gap: 16px; }
    .dl-simplecheckout-page .simplecheckout-left-column,
    .dl-simplecheckout-page .simplecheckout-right-column { gap: 16px; }
}
.dl-simplecheckout-page .simplecheckout-block {
    margin: 0 !important;
    padding: 24px !important;
    border: 1.5px solid var(--dl-line) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}
.dl-simplecheckout-page .simplecheckout-block-content { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.dl-simplecheckout-page .simplecheckout-block .checkout-heading {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--dl-ink) !important;
    font-family: var(--dl-font);
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    text-transform: none !important;
}
.dl-simplecheckout-page .simplecheckout-block .checkout-heading::before {
    content: "";
    flex: none;
    width: 6px;
    height: 22px;
    border-radius: 3px;
    background: var(--dl-accent);
}
/* Simple prints empty blocks (e.g. payment form) — hide them */
.dl-simplecheckout-page .simplecheckout-block:empty { display: none !important; }
/* the cart block has no heading of its own */
.dl-simplecheckout-page #simplecheckout_cart::before {
    content: "Ваше замовлення";
    display: block;
    margin: 0 0 14px;
    padding-left: 18px;
    border-left: 6px solid var(--dl-accent);
    border-radius: 3px;
    color: var(--dl-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 22px;
    letter-spacing: -0.02em;
}
.dl-simplecheckout-page .simplecheckout-block .checkout-heading span { color: inherit !important; font: inherit !important; }

/* ---------- 3. fields: label above the field ---------- */
.dl-simplecheckout-page .simplecheckout-block fieldset.form-horizontal { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.dl-simplecheckout-page .simplecheckout-block .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 14px !important;
    padding: 0 !important;
}
.dl-simplecheckout-page .simplecheckout-block .form-group:last-child { margin-bottom: 0 !important; }
.dl-simplecheckout-page .simplecheckout-block .form-group > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    float: none !important;
    padding: 0 !important;
}
.dl-simplecheckout-page .simplecheckout-block .control-label {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--dl-ink-2) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
}
.dl-simplecheckout-page .simplecheckout-block .form-group.required .control-label::after { content: " *"; color: #E5484D; }
.dl-simplecheckout-page .simplecheckout-block .form-group.required .control-label::before { display: none !important; }
.dl-simplecheckout-page .simplecheckout-block .form-control {
    width: 100% !important;
    max-width: none !important;
    height: 52px;
    padding: 0 16px !important;
    border: 1.5px solid #D5DCE2 !important;
    border-radius: 14px !important;
    background-color: var(--dl-field, #F8FAFB) !important;
    color: var(--dl-ink) !important;
    font-family: var(--dl-font);
    font-size: 15px !important;
    font-weight: 500;
    box-shadow: none !important;
}
/* select2 keeps the real <select> visually hidden — don't stretch it (it pushed the page wider on phones) */
.dl-simplecheckout-page .simplecheckout-block .form-control.select2-hidden-accessible { width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; }
.dl-simplecheckout-page .simplecheckout-block select.form-control { padding-right: 40px !important; cursor: pointer; }
.dl-simplecheckout-page .simplecheckout-block textarea.form-control { height: auto; min-height: 110px; padding: 14px 16px !important; resize: vertical; }
.dl-simplecheckout-page .simplecheckout-block .form-control:focus { border-color: var(--dl-accent) !important; background-color: #ffffff !important; box-shadow: 0 0 0 3px rgba(0, 168, 232, .18) !important; }
.dl-simplecheckout-page .simplecheckout-block .simplecheckout-rule-group,
.dl-simplecheckout-page .simplecheckout-block .simplecheckout-error-text,
.dl-simplecheckout-page .simplecheckout-block .text-danger { color: #E5484D !important; font-size: 12px; font-weight: 600; }
.dl-simplecheckout-page .simplecheckout-block .has-error .form-control,
.dl-simplecheckout-page .simplecheckout-block .form-control.is-invalid { border-color: #E5484D !important; }
/* select2 (region / city / branch) */
.dl-simplecheckout-page .simplecheckout-block .select2-container { width: 100% !important; }
.dl-simplecheckout-page .simplecheckout-block .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    height: 52px !important;
    padding: 0 40px 0 16px !important;
    border: 1.5px solid #D5DCE2 !important;
    border-radius: 14px !important;
    background: var(--dl-field, #F8FAFB) !important;
    box-shadow: none !important;
}
.dl-simplecheckout-page .simplecheckout-block .select2-container--open .select2-selection--single,
.dl-simplecheckout-page .simplecheckout-block .select2-container--focus .select2-selection--single { border-color: var(--dl-accent) !important; background: #ffffff !important; }
.dl-simplecheckout-page .simplecheckout-block .select2-selection__rendered {
    padding: 0 !important;
    color: var(--dl-ink) !important;
    font-family: var(--dl-font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3 !important;
}
.dl-simplecheckout-page .simplecheckout-block .select2-selection__arrow { top: 50% !important; right: 14px !important; height: 20px !important; transform: translateY(-50%); }
/* "another person will receive the parcel" */
/* the recipient block ships its own rules with #simplecheckout_customer ×3 — four ids are needed to win */
#simplecheckout_customer#simplecheckout_customer#simplecheckout_customer#simplecheckout_customer fieldset.order-recipient { margin: 16px 0 0 !important; padding: 0 !important; border: 0 !important; }
#simplecheckout_customer#simplecheckout_customer#simplecheckout_customer#simplecheckout_customer .order-recipient label.order-recipient-toggle { padding: 12px 16px !important; font-size: 14px !important; color: var(--dl-ink) !important; }
.dl-simplecheckout-page .order-recipient-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1.5px dashed #C9D2DA !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: var(--dl-ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.dl-simplecheckout-page .order-recipient-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--dl-accent); }

/* ---------- 4. shipping / payment options as selectable rows ---------- */
.dl-simplecheckout-page .simplecheckout-block .radio,
.dl-simplecheckout-page .simplecheckout-block .checkbox { margin: 0 0 8px !important; padding: 0 !important; }
.dl-simplecheckout-page .simplecheckout-block .radio label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1.5px solid var(--dl-line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--dl-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.dl-simplecheckout-page .simplecheckout-block .radio label:hover { border-color: var(--dl-accent); }
.dl-simplecheckout-page .simplecheckout-block .radio:has(input:checked) label { border-color: var(--dl-accent); background: var(--dl-accent-soft); }
.dl-simplecheckout-page .simplecheckout-block .radio input[type="radio"] {
    position: static !important;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    accent-color: var(--dl-accent);
}
.dl-simplecheckout-page .simplecheckout-block .radio img { flex: none; max-height: 22px; width: auto; }
.dl-simplecheckout-page #simplecheckout_shipping .simplecheckout-block-content > p { margin: 14px 0 8px !important; }
.dl-simplecheckout-page #simplecheckout_shipping .simplecheckout-block-content > p b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dl-ink);
    font-size: 15px;
    font-weight: 800;
}
.dl-simplecheckout-page #simplecheckout_shipping .simplecheckout-block-content > p b img { width: 28px !important; height: 28px !important; margin: 0 !important; }
.dl-simplecheckout-page #simplecheckout_shipping p[data-shipping-policy] {
    margin: 0 0 6px !important;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--dl-accent-soft);
    color: var(--dl-link);
    font-size: 13px !important;
    font-weight: 600;
}

/* ---------- 5. order summary (cart table + totals) ---------- */
.dl-simplecheckout-page #simplecheckout_cart .table-responsive { margin: 0 0 12px; border: 0; }
.dl-simplecheckout-page .simplecheckout-cart { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: separate; border-spacing: 0; }
.dl-simplecheckout-page .simplecheckout-cart th {
    padding: 0 10px 12px !important;
    border: 0 !important;
    border-bottom: 1.5px solid var(--dl-line) !important;
    background: transparent !important;
    color: #6B7380 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.dl-simplecheckout-page .simplecheckout-cart td {
    padding: 14px 10px !important;
    border: 0 !important;
    border-bottom: 1.5px solid var(--dl-line) !important;
    background: transparent !important;
    color: var(--dl-ink);
    font-size: 14px;
    vertical-align: middle !important;
}
.dl-simplecheckout-page .simplecheckout-cart td.image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 14px;
    background: var(--dl-gray-bg);
    overflow: hidden;
}
.dl-simplecheckout-page .simplecheckout-cart td.image img { max-width: 88%; max-height: 88%; width: auto; height: auto; mix-blend-mode: multiply; border: 0 !important; }
.dl-simplecheckout-page .simplecheckout-cart th.name,
.dl-simplecheckout-page .simplecheckout-cart td.name { text-align: left !important; }
.dl-simplecheckout-page .simplecheckout-cart td.name a { color: var(--dl-ink) !important; font-size: 15px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.dl-simplecheckout-page .simplecheckout-cart td.name a:hover { color: var(--dl-link) !important; }
.dl-simplecheckout-page .simplecheckout-cart td.model { color: #6B7380; font-size: 13px; }
.dl-simplecheckout-page .simplecheckout-cart td.price,
.dl-simplecheckout-page .simplecheckout-cart td.total { white-space: nowrap; font-weight: 700; }
.dl-simplecheckout-page .simplecheckout-cart td.price > div:first-child:not(:last-child) { color: #6B7380; font-size: 12px; font-weight: 500; text-decoration: line-through; }
.dl-simplecheckout-page .simplecheckout-cart td.total { font-size: 16px; font-weight: 800; }
.dl-simplecheckout-page .simplecheckout-cart td.quantity .input-group { flex-wrap: nowrap; width: auto; max-width: 150px; }
.dl-simplecheckout-page .simplecheckout-cart td.quantity .form-control {
    height: 42px;
    min-width: 44px;
    padding: 0 6px !important;
    border: 1.5px solid #D5DCE2 !important;
    background: #ffffff !important;
    font-weight: 800;
    text-align: center;
    box-shadow: none !important;
}
.dl-simplecheckout-page .simplecheckout-cart td.quantity .btn {
    height: 42px;
    padding: 0 12px !important;
    border: 1.5px solid #D5DCE2 !important;
    background: var(--dl-gray-bg) !important;
    color: var(--dl-ink) !important;
    box-shadow: none !important;
}
.dl-simplecheckout-page .simplecheckout-cart td.quantity .input-group > :first-child { border-radius: 12px 0 0 12px !important; }
.dl-simplecheckout-page .simplecheckout-cart td.quantity .input-group > :last-child { border-radius: 0 12px 12px 0 !important; }
.dl-simplecheckout-page .simplecheckout-cart-total {
    display: flex !important;
    align-items: baseline;
    justify-content: flex-end;
    gap: 16px;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--dl-ink-2);
    font-size: 14px;
    text-align: right;
}
.dl-simplecheckout-page .simplecheckout-cart-total b { font-weight: 600; }
.dl-simplecheckout-page .simplecheckout-cart-total-value { min-width: 140px; color: var(--dl-ink); font-size: 16px; font-weight: 800; white-space: nowrap; }
.dl-simplecheckout-page #total_total { margin-top: 6px !important; padding-top: 14px !important; border-top: 1.5px solid var(--dl-line) !important; color: var(--dl-ink); }
.dl-simplecheckout-page #total_total b { font-size: 16px; font-weight: 800; }
.dl-simplecheckout-page #total_total .simplecheckout-cart-total-value { font-size: 28px; letter-spacing: -0.03em; }
.dl-simplecheckout-page .simplecheckout-cart-total .form-control { height: 44px; border-radius: 12px !important; }

/* ---------- 6. bottom: note, agreement, buttons ---------- */
.dl-simplecheckout-page .checkout-sms-note { margin: 20px 0 0 !important; color: #6B7380; font-size: 13px; }
.dl-simplecheckout-page .simplecheckout-button-block {
    display: flex !important;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 0 !important;
    padding: 20px 24px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: var(--dl-gray-bg) !important;
}
.dl-simplecheckout-page .simplecheckout-button-block::before,
.dl-simplecheckout-page .simplecheckout-button-block::after { display: none !important; }
.dl-simplecheckout-page .simplecheckout-button-right {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    float: none !important;
    margin: 0 !important;
}
.dl-simplecheckout-page .simplecheckout-button-left { float: none !important; margin: 0 !important; }
.dl-simplecheckout-page #agreement_checkbox .checkbox { margin: 0 !important; }
.dl-simplecheckout-page #agreement_checkbox label {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    margin: 0;
    padding: 0 !important;
    color: var(--dl-ink-2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.dl-simplecheckout-page #agreement_checkbox input { position: static !important; width: 18px; height: 18px; margin: 0 !important; accent-color: var(--dl-accent); }
.dl-simplecheckout-page #agreement_checkbox a,
.dl-simplecheckout-page #agreement_checkbox a b { color: var(--dl-link) !important; font-weight: 700; }
.dl-simplecheckout-page .simplecheckout-button-block .button_oc {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 16px !important;
    font-family: var(--dl-font);
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    box-shadow: none !important;
}
.dl-simplecheckout-page #simplecheckout_button_confirm,
.dl-simplecheckout-page #simplecheckout_button_next { min-width: 260px; background: var(--dl-accent) !important; color: var(--dl-ink) !important; }
.dl-simplecheckout-page #simplecheckout_button_confirm:hover,
.dl-simplecheckout-page #simplecheckout_button_next:hover { background: var(--dl-ink) !important; color: #ffffff !important; }
.dl-simplecheckout-page #simplecheckout_button_back,
.dl-simplecheckout-page #simplecheckout_button_prev {
    border: 1.5px solid #C9D2DA !important;
    background: #ffffff !important;
    color: var(--dl-ink) !important;
}
.dl-simplecheckout-page #simplecheckout_button_back:hover,
.dl-simplecheckout-page #simplecheckout_button_prev:hover { border-color: var(--dl-ink) !important; }
.dl-simplecheckout-page .simplecheckout-button-block .button_oc span { color: inherit !important; }
.dl-simplecheckout-page .simplecheckout-warning-block { border-radius: 14px !important; }

/* ---------- 7. responsive ---------- */
@media (max-width: 1199.98px) {
    .dl-simplecheckout-page .related-checkout-module > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    /* kits: one swipeable row */
    .dl-simplecheckout-page .related-checkout-module { margin-bottom: 16px; padding: 14px 0 14px 14px; border-radius: 18px; }
    .dl-simplecheckout-page .related-checkout-module > h4 { margin-bottom: 10px; font-size: 16px; }
    .dl-simplecheckout-page .related-checkout-module > .row {
        display: flex;
        gap: 8px;
        padding-right: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .dl-simplecheckout-page .related-checkout-module > .row::-webkit-scrollbar { display: none; }
    .dl-simplecheckout-page .related-checkout-module .product-layout { flex: 0 0 300px !important; scroll-snap-align: start; }
    .dl-simplecheckout-page .related-checkout-module .related-checkout-add-button { width: 36px !important; height: 36px; padding: 0 !important; }
    .dl-simplecheckout-page .related-checkout-module .related-checkout-add-button span { display: none; }
    .dl-simplecheckout-page .simplecheckout-block { padding: 18px 16px !important; border-radius: 18px !important; }
    .dl-simplecheckout-page .simplecheckout-block .checkout-heading { font-size: 18px !important; }
    .dl-simplecheckout-page .simplecheckout-cart td.image a { width: 64px; height: 64px; border-radius: 12px; }
    .dl-simplecheckout-page #total_total .simplecheckout-cart-total-value { font-size: 24px; }
    .dl-simplecheckout-page .simplecheckout-button-block { padding: 16px !important; }
    .dl-simplecheckout-page .simplecheckout-button-right,
    .dl-simplecheckout-page .simplecheckout-button-left { width: 100%; }
    .dl-simplecheckout-page .simplecheckout-button-block .button_oc { width: 100%; min-width: 0; }
}
