/*
 * Кошница 2024. Задание: skills/elpro-cart/SPEC.md
 * Две колони на десктоп (редове + sticky обобщение), карти и долна лента на мобилен.
 */

.cart2024 {
    --cart-border: #e8e8f0;
    --cart-muted: #5f5f6e;
    --cart-ink: #333e48;
    --cart-accent: #d32017;
    --cart-ok: #15803d;

    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

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

/* [hidden] трябва да бие всяко наше display правило - иначе скрит елемент
   (напр. пояснението за безплатната доставка) си остава видим. */
.cart2024 [hidden] {
    display: none !important;
}

.cart2024__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

/* ---------- редове ---------- */

.cart2024__items {
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 16px;
    padding: 8px 16px;
    box-shadow: 0 1px 2px rgba(51, 62, 72, .05);
}

.cart2024-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--cart-border);
}

.cart2024-row:last-child {
    border-bottom: 0;
}

.cart2024-row {
    border-radius: 12px;
    transition: background-color .15s ease;
}

.cart2024-row:hover {
    background: #fbfbfd;
}

.cart2024-row__image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f7f7fa;
    object-fit: contain;
}

.cart2024-row__name {
    display: block;
    margin: 0 0 4px;
    color: var(--cart-ink);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cart2024-row__name:hover {
    color: var(--cart-accent);
}

.cart2024-row__kod {
    color: var(--cart-muted);
    font-size: 12px;
    line-height: 16px;
}

.cart2024-row__prices {
    margin-top: 8px;
    font-size: 12px;
    line-height: 16px;
    color: var(--cart-muted);
}

.cart2024-row__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 132px;
}

.cart2024-row__total {
    font-size: 16px;
    font-weight: 700;
    color: var(--cart-ink);
    white-space: nowrap;
}

/* Сумата на реда е с ДДС, а в обобщението първият ред е без ДДС -
   без този надпис двете числа се четат като противоречие. */
.cart2024-row__vat {
    font-size: 12px;
    font-weight: 400;
    color: var(--cart-muted);
    white-space: nowrap;
}

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

.cart2024-qty button {
    width: 32px;
    height: 32px;
    border: 0;
    background: #f7f7fa;
    color: var(--cart-ink);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.cart2024-qty button:hover {
    background: #ececf2;
}

.cart2024-qty input {
    width: 64px;
    height: 32px;
    border: 0;
    text-align: center;
    font-size: 14px;
    color: var(--cart-ink);
}

.cart2024-row__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--cart-muted);
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.cart2024-row__remove:hover {
    background: #fdeceb;
    color: var(--cart-accent);
}

.cart2024-row__remove:focus-visible,
.cart2024-sum__button:focus-visible,
.cart2024-bar__button:focus-visible,
.cart2024-continue:focus-visible {
    outline: 2px solid var(--cart-ink);
    outline-offset: 2px;
}

/* ---------- обобщение ---------- */

.cart2024__summary {
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(51, 62, 72, .07);
}

.cart2024-sum {
    display: grid;
    /* Надписите започват там, където започва текстът в блока с предимствата
       отдолу, а сумите остават долепени вдясно. */
    grid-template-columns: 1fr max-content;
    align-items: baseline;
    gap: 0 14px;
    padding-left: 58px;
}

/* редовете само предават децата си на общата решетка */
.cart2024-sum__line,
.cart2024-sum__total {
    display: contents;
}

.cart2024-sum__line > span {
    padding: 5px 0;
    font-size: 14px;
    color: var(--cart-muted);
}

.cart2024-sum__line > strong {
    padding: 5px 0;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
    color: var(--cart-ink);
}

.cart2024-sum__note {
    grid-column: 1 / -1;
    display: block;
    margin: -2px 0 4px;
    font-style: normal;
    font-size: 11px;
    line-height: 15px;
    color: var(--cart-muted);
}

.cart2024-sum__rule {
    grid-column: 1 / -1;
    margin-top: 10px;
    border-top: 2px solid var(--cart-border);
}

.cart2024-sum__total > span {
    padding-top: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--cart-ink);
    white-space: nowrap;
}

.cart2024-sum__total > span:last-child {
    text-align: right;
}

.cart2024-sum__bgn {
    grid-column: 1 / -1;
    text-align: right;
    color: var(--cart-muted);
    font-size: 13px;
}

/* ---------- бутонът за поръчка ---------- */

.cart2024-sum__button {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 14px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--cart-ok);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(21, 128, 61, .22);
    transition: filter .15s ease, box-shadow .15s ease;
}

.cart2024-sum__button:hover {
    filter: brightness(0.95);
    box-shadow: 0 6px 16px rgba(21, 128, 61, .3);
}

/* ---------- безплатна доставка ---------- */

.cart2024-free {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fffaf0;
    border: 1px solid #ffe9a8;
    font-size: 13px;
    line-height: 18px;
    color: var(--cart-ink);
}

.cart2024-free__bar {
    height: 6px;
    margin-top: 8px;
    border-radius: 999px;
    background: #f0ece0;
    overflow: hidden;
}

.cart2024-free__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #8a6a00;
}

/* ---------- предимства под бутона ---------- */

.cart2024-benefits {
    margin: 16px 0 0;
    padding: 14px;
    list-style: none;
    border-radius: 14px;
    background: #f7f7fa;
}

.cart2024-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(51, 62, 72, .06);
}

.cart2024-benefit:first-child {
    padding-top: 0;
}

.cart2024-benefit:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cart2024-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: var(--cart-ink);
    box-shadow: 0 1px 3px rgba(51, 62, 72, .08);
}

.cart2024-benefit__text {
    font-size: 12px;
    line-height: 17px;
    color: var(--cart-muted);
}

.cart2024-benefit__text strong {
    display: block;
    font-size: 13px;
    line-height: 18px;
    color: var(--cart-ink);
}

.cart2024-benefit__text b {
    font-weight: 700;
    color: var(--cart-ink);
}

.cart2024-benefit__text a {
    color: var(--cart-ink);
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- празна количка ---------- */

.cart2024-empty {
    padding: 48px 16px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 16px;
}

.cart2024-empty h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--cart-ink);
}

.cart2024-empty p {
    margin: 0 0 16px;
    color: var(--cart-muted);
}

.cart2024-empty a {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--cart-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- мобилна лента ---------- */

.cart2024-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 52px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid var(--cart-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}

/* лентата се показва само когато бутонът "Купи" е извън екрана */
.cart2024-bar[hidden] {
    display: none;
}

.cart2024-bar__info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.cart2024-bar__count,
.cart2024-bar__ship {
    font-size: 12px;
    line-height: 16px;
    color: var(--cart-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart2024-bar__total {
    font-size: 16px;
    font-weight: 700;
    color: var(--cart-ink);
    white-space: nowrap;
}

@media (max-width: 359.98px) {
    .cart2024-bar__ship {
        display: none;
    }
}

/* бутонът заема половината лента, както "Добави в кошницата" на продукта */
.cart2024-bar__button {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 12px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--cart-ok);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.cart2024-bar__info {
    flex: 1 1 50%;
    min-width: 0;
}

/* Броят и доставката са един под друг. На един ред дългият текст
   ("+ доставка по тарифа") не се побираше до бутона и се режеше. */
.cart2024-bar__lines {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ---------- десктоп ---------- */

@media (min-width: 1024px) {
    .cart2024__layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .cart2024__summary {
        position: sticky;
        top: 16px;
    }

    /* Лепкавата лента е само за мобилната версия - там бутонът "Купи" е далеч
       надолу. На десктоп обобщението е sticky и бутонът винаги се вижда.
       1024px е границата на темата: под нея се показва и долното меню. */
    .cart2024-bar {
        display: none !important;
    }
}

@media (max-width: 1023.98px) {
    /* Мястото за лепкавата лента се пази в дъното на страницата, а не под
       кошницата - иначе между обобщението и блока за доставка зейваше 132px.
       Темата вече дава 52px за долното меню; лентата иска още ~72px. */
    /* "html body", защото каталожният CSS вече дава 52px със същата тежест */
    html body {
        padding-bottom: 124px;
    }
}

/* ---------- блокове под продуктите (доставка, плащане, данни) ---------- */

.cart2024__left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.cart2024-card {
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(51, 62, 72, .05);
}

.cart2024-card__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    color: var(--cart-ink);
}

.cart2024-card__title::before {
    content: "";
    flex: 0 0 auto;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--cart-accent);
}

.cart2024-card__note {
    margin: 0;
    font-size: 13px;
    line-height: 19px;
    color: var(--cart-muted);
}

.cart2024-card__link {
    display: inline-block;
    margin: 8px 12px 0 0;
    color: var(--cart-accent);
    font-size: 14px;
}

/* избор на начин за поръчка */
.cart2024-mode {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--cart-border);
    border-radius: 12px;
    cursor: pointer;
}

.cart2024-mode:last-of-type {
    margin-bottom: 0;
}

.cart2024-mode input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.cart2024-mode span {
    font-size: 13px;
    line-height: 18px;
    color: var(--cart-muted);
}

.cart2024-mode strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    color: var(--cart-ink);
}

.cart2024-mode__login {
    margin-top: 8px;
}

/* куриери и плащане */
.cart2024-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--cart-ink);
    cursor: pointer;
}

/* полета */
.cart2024-field {
    margin-top: 12px;
}

.cart2024-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--cart-muted);
}

.cart2024-field input,
.cart2024-field textarea {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--cart-border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--cart-ink);
    background: #fff;
}

/* Съобщението до нас е на няколко реда и следва шрифта на страницата,
   а не заварения моноширинен на браузъра. */
.cart2024-field textarea {
    height: auto;
    min-height: 88px;
    padding: 10px 12px;
    font-family: inherit;
    line-height: 20px;
    resize: vertical;
}

.cart2024-field input:focus,
.cart2024-field textarea:focus {
    outline: 2px solid var(--cart-ink);
    outline-offset: 1px;
}

.cart2024-field__error {
    display: block;
    margin-top: 4px;
    color: var(--cart-accent);
    font-size: 12px;
}

/* пояснението за безплатната доставка е на свой ред под нея */
.cart2024-sum__note {
    display: block;
    max-width: 230px;
    margin: -2px 0 4px;
    font-style: normal;
    font-size: 11px;
    line-height: 15px;
    color: var(--cart-muted);
}

/* ---------- ред от количката на тесен екран ---------- */

@media (max-width: 575.98px) {
    .cart2024-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    /* количество, сума и премахване минават под текста, за да не се
       смачква заглавието на продукта до няколко букви на ред */
    .cart2024-row__side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-width: 0;
        margin-top: 4px;
    }

    /* Ред отдолу: кошче, количество, цена вдясно. */
    .cart2024-row__remove {
        order: 1;
    }

    .cart2024-qty {
        order: 2;
    }

    .cart2024-row__total {
        order: 3;
        margin-left: auto;
    }
}

/* ---------- физическо / юридическо лице ---------- */

.cart2024-clienttype {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--cart-border);
}

.cart2024-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 12px;
}

@media (min-width: 576px) {
    .cart2024-two {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- продължи пазаруването ---------- */

.cart2024-continue {
    display: inline-block;
    margin: 12px 0 4px;
    color: var(--cart-muted);
    font-size: 14px;
    text-decoration: none;
}

.cart2024-continue:hover {
    color: var(--cart-accent);
}

/* празно поле за грешка не заема място */
.cart2024-field__error:empty {
    display: none;
}

/* полето, което е спряло поръчката, се вижда веднага */
.cart2024-field input.is-invalid,
.cart2024 .is-invalid input {
    border-color: var(--cart-accent);
}

/* ---------- условия за доставка под кошницата ---------- */
/* заменя картинката dostavka3.jpg с фиксираната цена */

.cart2024-delivery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 1400px;
    margin: 8px auto 24px;
    padding: 16px;
    border: 1px solid #e8e8f0;
    border-radius: 16px;
    background: #fff;
}

.cart2024-delivery__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cart2024-delivery__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f7f7fa;
    color: #333e48;
}

.cart2024-delivery__item--free .cart2024-delivery__icon {
    background: #f0f0f4;
    color: #333e48;
}

.cart2024-delivery__text {
    font-size: 12px;
    line-height: 17px;
    color: #5f5f6e;
}

.cart2024-delivery__text strong {
    display: block;
    font-size: 15px;
    line-height: 21px;
    color: #333e48;
}

.cart2024-delivery__item--free .cart2024-delivery__text strong {
    color: #333e48;
}

@media (min-width: 768px) {
    .cart2024-delivery {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 24px;
        padding: 20px 24px;
    }
}

/* данните на влезъл клиент - само за четене */
.cart2024-data {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 20px;
}

.cart2024-data dt {
    color: var(--cart-muted);
    font-weight: 400;
}

.cart2024-data dd {
    margin: 0;
    color: var(--cart-ink);
    overflow-wrap: anywhere;
}


/* ---------- избор на куриер и плащане: плочки с лого ---------- */

.cart2024-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 420px) {
    .cart2024-tiles,
    .cart2024-tiles--two {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 620px) {
    .cart2024-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cart2024-tile {
    position: relative;
    display: block;
    cursor: pointer;
}

.cart2024-tile input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cart2024-tile__body {
    display: block;
    height: 100%;
    min-height: 96px;
    padding: 13px 14px;
    border: 1px solid var(--cart-border);
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cart2024-tile:hover .cart2024-tile__body {
    border-color: #c4c4d0;
    box-shadow: 0 2px 10px rgba(51, 62, 72, .07);
}

.cart2024-tile input:checked + .cart2024-tile__body {
    border-color: var(--cart-ink);
    box-shadow: 0 6px 18px rgba(51, 62, 72, .13);
    transform: translateY(-1px);
}

.cart2024-tile input:focus-visible + .cart2024-tile__body {
    outline: 2px solid var(--cart-ink);
    outline-offset: 2px;
}

.cart2024-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
    margin-bottom: 8px;
}

.cart2024-tile__logo {
    max-height: 26px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .18s ease, opacity .18s ease;
}

.cart2024-tile input:checked + .cart2024-tile__body .cart2024-tile__logo {
    filter: none;
    opacity: 1;
}

/* кръгче с отметка вдясно */
.cart2024-tile__mark {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid #d5d5de;
    border-radius: 50%;
    transition: border-color .18s ease, background-color .18s ease;
}

.cart2024-tile__mark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .18s ease;
}

.cart2024-tile input:checked + .cart2024-tile__body .cart2024-tile__mark {
    border-color: var(--cart-ink);
    background: var(--cart-ink);
}

.cart2024-tile input:checked + .cart2024-tile__body .cart2024-tile__mark::after {
    transform: rotate(45deg) scale(1);
}

.cart2024-tile__name {
    display: block;
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    color: var(--cart-ink);
}

.cart2024-tile__note {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 16px;
    color: var(--cart-muted);
}

/* --- табове "до офис / до адрес" --- */

.cart2024-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 4px;
    border-radius: 999px;
    background: #f2f2f6;
}

.cart2024-tab {
    position: relative;
    flex: 1 1 50%;
    text-align: center;
    cursor: pointer;
}

.cart2024-tab input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cart2024-tab span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cart-muted);
    transition: background-color .15s, color .15s;
}

.cart2024-tab input:checked + span {
    background: #fff;
    color: var(--cart-ink);
    box-shadow: 0 1px 4px rgba(51, 62, 72, .12);
}

.cart2024-tab input:focus-visible + span {
    outline: 2px solid var(--cart-ink);
}

/* --- подсказки за град --- */

.cart2024-suggest {
    position: relative;
}

.cart2024-suggest__list {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 260px;
    margin: 4px 0 0;
    padding: 4px;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(51, 62, 72, .12);
}

.cart2024-suggest__item {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 18px;
}

.cart2024-suggest__item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--cart-ink);
}

.cart2024-suggest__item span {
    font-size: 12px;
    color: var(--cart-muted);
}

.cart2024-suggest__item:hover,
.cart2024-suggest__item.is-active {
    background: #f2f2f6;
}

.cart2024-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 17px;
    color: var(--cart-muted);
}

/* --- списък с офиси --- */

.cart2024-offices {
    max-height: 320px;
    margin-top: 8px;
    overflow-y: auto;
    border: 1px solid var(--cart-border);
    border-radius: 12px;
}

.cart2024-offices:empty {
    display: none;
}

.cart2024-office {
    position: relative;
    display: block;
    border-bottom: 1px solid var(--cart-border);
    cursor: pointer;
}

.cart2024-office:last-child {
    border-bottom: 0;
}

/* Нативното радио се крие - темата го уголемява и заема цял ред. */
.cart2024-office input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cart2024-office__body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    transition: background-color .15s ease;
}

.cart2024-office:hover .cart2024-office__body {
    background: #f7f7fa;
}

.cart2024-office input:checked + .cart2024-office__body {
    background: #f2f5f7;
}

.cart2024-office input:focus-visible + .cart2024-office__body {
    outline: 2px solid var(--cart-ink);
    outline-offset: -2px;
}

.cart2024-office__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 17px;
    color: var(--cart-muted);
}

.cart2024-office__text strong {
    display: block;
    font-size: 13px;
    line-height: 18px;
    color: var(--cart-ink);
}

.cart2024-office__text span {
    display: block;
}

.cart2024-office__work {
    color: var(--cart-ink);
}

/* Отметката вдясно - същата като при плочките за куриер. */
.cart2024-office__mark {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid #d5d5de;
    border-radius: 50%;
    transition: border-color .15s ease, background-color .15s ease;
}

.cart2024-office__mark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .15s ease;
}

.cart2024-office input:checked + .cart2024-office__body .cart2024-office__mark {
    border-color: var(--cart-ink);
    background: var(--cart-ink);
}

.cart2024-office input:checked + .cart2024-office__body .cart2024-office__mark::after {
    transform: rotate(45deg) scale(1);
}



/* ---------- изравняване по ширина на телефон ---------- */
/* Картите с продуктите стояха по-тесни от блока за доставка отдолу и от
   лепкавата лента. Тук кошницата излиза до същите полета. */

@media (max-width: 575.98px) {
    .cart2024 {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 0;
        padding-right: 0;
    }

    .cart2024__items,
    .cart2024-card,
    .cart2024__summary,
    .cart2024-empty {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cart2024-bar {
        padding-left: 17px;
        padding-right: 17px;
    }
}


/* ---------- избран офис ---------- */

.cart2024-picked {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--cart-ink);
    border-radius: 12px;
    background: #f7f9fa;
}

.cart2024-picked__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 17px;
    color: var(--cart-muted);
}

.cart2024-picked__text strong {
    display: block;
    font-size: 13px;
    line-height: 18px;
    color: var(--cart-ink);
}

.cart2024-picked__text span {
    display: block;
}

.cart2024-picked__work {
    color: var(--cart-ink);
}

.cart2024-picked__change {
    flex: 0 0 auto;
    align-self: center;
    padding: 8px 14px;
    border: 1px solid var(--cart-border);
    border-radius: 999px;
    background: #fff;
    color: var(--cart-ink);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.cart2024-picked__change:hover {
    border-color: var(--cart-ink);
    background: #f2f2f6;
}

.cart2024-picked__change:focus-visible {
    outline: 2px solid var(--cart-ink);
    outline-offset: 2px;
}


/* бележка под плочките за куриер */
.cart2024-notice {
    margin: -6px 0 14px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fffaf0;
    border: 1px solid #ffe9a8;
    font-size: 12px;
    line-height: 17px;
    color: var(--cart-ink);
}

/* ---------- страница след поръчка ---------- */

.cart2024-done {
    margin-bottom: 16px;
    padding: 28px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(51, 62, 72, .05);
}

.cart2024-done__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #eaf5ee;
    color: var(--cart-ok);
}

/* Без поръчка знакът е неутрален, а не зелена отметка -
   страницата не потвърждава нищо. */
.cart2024-done__mark--info {
    background: #eef2f6;
    color: #64748b;
}

.cart2024-done__title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 30px;
    color: var(--cart-ink);
}

.cart2024-done__lead {
    margin: 0 auto;
    max-width: 520px;
    font-size: 14px;
    line-height: 20px;
    color: var(--cart-muted);
}

.cart2024-done__lead strong {
    color: var(--cart-ink);
}

.cart2024-done__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 18px;
}

.cart2024-done__button {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--cart-ok);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(21, 128, 61, .22);
}

.cart2024-done__button:hover {
    filter: brightness(0.95);
    color: #fff;
}

.cart2024-done__button:focus-visible,
.cart2024-done__link:focus-visible {
    outline: 2px solid var(--cart-ink);
    outline-offset: 2px;
}

.cart2024-done__link {
    color: var(--cart-ink);
    font-size: 14px;
    font-weight: 600;
}

/* стъпките "какво следва" */

.cart2024-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart2024-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(51, 62, 72, .06);
}

.cart2024-step:last-child {
    border-bottom: 0;
}

.cart2024-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cart-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.cart2024-step__text {
    font-size: 12px;
    line-height: 17px;
    color: var(--cart-muted);
}

.cart2024-step__text strong {
    display: block;
    font-size: 13px;
    line-height: 18px;
    color: var(--cart-ink);
}

.cart2024-step__text b {
    font-weight: 700;
    color: var(--cart-ink);
}
