:root {
    --brand: #c40043;
    --brand-dark: #970033;
    --brand-soft: #fff1f6;
    --text: #262a33;
    --muted: #707783;
    --light: #a2a9b3;
    --line: #e2e5eb;
    --bg: #f7f8fb;
    --card: #fff;
    --soft: #fafbfe;
    --green: #148b60;
    --green-soft: #e9f7f1;
    --orange: #bd7600;
    --orange-soft: #fff5df;
    --red: #c93442;
    --red-soft: #fff0f2;
    --shadow: 0 14px 34px rgba(29, 35, 51, .08);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--bg);
    color: var(--text) !important;
    font-family:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    letter-spacing: 0;
    font-weight: 400;
}
body.not-logged-in {
    background: var(--mc);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app {
    height: 100vh;
    display: grid;
    grid-template-columns: 230px minmax(720px, 1fr) 365px;
    grid-template-rows: 72px 1fr;
}
.app.two-col{
    grid-template-columns: 230px minmax(720px, 1fr);
}
.topbar {
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: 230px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 0 22px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    z-index: 5;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    color: #777d86;
    font-size: 30px;
    line-height: 1;
    font-weight: 400;
}

.global-search {
    display: grid;
    grid-template-columns: 150px 1fr 110px;
    gap: 10px;
    align-items: center;
}

.field, .select, .textarea { 
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--text);
    outline: 0;
    padding: 10px 13px;
    font-weight: 400;
}

.textarea {
    height: 76px;
    padding: 10px 12px;
    resize: none;
}

.field::placeholder { color: var(--light); }

.btn {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: #454b56;
    padding: 0 13px;
    font-weight: 500;
}
.btn:hover{
    background: var(--brand-soft);
    border-color: #f1b7cc;
    color: var(--brand);
}

.btn.primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.btn.soft {
    background: var(--brand-soft);
    border-color: #f1b7cc;
    color: var(--brand);
}
.btn.soft .inline-icon svg  {
    fill: var(--brand);
}
.btn-border {
    border-color: var(--brand);
}

.btn.danger , .nav-icon.danger{
    background: var(--red-soft);
    border-color: #f4bbc1;
    color: var(--red);
}

.top-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.pill {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 0 13px;
    color: #535b66;
    font-size: 14px;
}

.pill strong {
    color: var(--brand);
    font-weight: 500;
}

.round {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 500;
}

.top-cart-toggle {
    display: none;
    align-items: center;
    justify-content: center;
}

.top-cart-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.side-cart-backdrop {
    display: none;
}

.sidebar {
    overflow-y: auto;
    background: var(--card);
    border-right: 1px solid var(--line);
    padding: 17px 14px;
}

.account {
    padding: 13px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    margin-bottom: 16px;
}

.label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
}

.account strong {
    display: block;
    color: var(--brand);
    margin-top: 5px;
    font-weight: 500;
}

.nav-title {
    margin: 19px 10px 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
}

.nav-item {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: #4e5661;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 3px;
    text-align: left;
    font-weight: 400;
}

.nav-item.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 28px rgba(196,0,67,.18);
}
.nav-item.active .nav-icon {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.count {
    min-width: 25px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef0f4;
    color: var(--muted);
    font-size: 12px;
    padding: 0 7px;
}

.active .count {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.main {
    overflow-y: auto;
    padding: 20px;
}

.head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    margin-bottom: 15px;
}

h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 500;
}

.sub {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.deadline {
    min-width: 240px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 13px 15px;
}

.deadline strong {
    display: block;
    color: var(--brand);
    margin-top: 5px;
    font-size: 20px;
    font-weight: 500;
}

.mode-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
}

.tab {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #59616d;
    padding: 0 14px;
    white-space: nowrap;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tab.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
#productList {
    display: none;
}
#productList.open, #historyPage.open { display: grid; }

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px;
    margin-bottom: 12px;
}
.toolbar {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px;
    margin-bottom: 12px;
    display: none;
}
.toolbar.open { display: block; }

#filterDrawer.filter-drawer-hidden {
    display: none !important;
}

#toggleFilters {
    display: none !important;
}

.toolbar-main {
    display: grid;
    grid-template-columns: 155px 155px 220px minmax(180px, 1fr) auto auto auto;
    gap: 9px;
    align-items: center;
}

.aktionen-toolbar-main {
    grid-template-columns:minmax(220px, 1fr) 80px auto;
}

.view-toggle {
    height: 40px;
    display: inline-grid;
    grid-template-columns: repeat(2, 40px);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.view-toggle button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}

.view-toggle button:last-child {
    border-right: 0;
}

.view-toggle button.active {
    background: var(--brand);
    color: #fff;
}

.view-toggle svg {
    width: 18px;
    height: 18px;
}

.drawer {
    display: none;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    gap: 9px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.drawer.open { display: grid; }

.check-row {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #555d68;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    user-select: none;
}

.chip.active {
    background: var(--brand-soft);
    border-color: #f1b7cc;
    color: var(--brand);
}

.panel {
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 12px;
}

.panel.open { display: block; }

.mde-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 11px;
    align-items: end;
}

.filebox {
    height: 44px;
    border: 1px dashed #cfd5df;
    border-radius: var(--radius);
    background: var(--soft);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #5a626e;
}

.products {
    display: grid;
    gap: 10px;
}

.product {
    display: grid;
    grid-template-columns: 92px minmax(230px, 4fr) 118px minmax(230px, .5fr) 170px 116px;
    grid-template-areas: "photo info mhd price order tools";
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow);
}

.product .photo { grid-area: photo; }
.product > div:nth-child(2) { grid-area: info; }
.product .mhd-box { grid-area: mhd; }
.product .price { grid-area: price; }
.product .order { grid-area: order; position: relative; }
.product .tools { grid-area: tools; }

.mhd-box.empty {
    visibility: hidden;
}

.products.product-block-list {
    grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
    align-items: start;
}

.products.product-block-list .product:not(.aktion-product):not(.action-offer-card) {
    grid-template-columns: 92px minmax(0, 1fr) minmax(116px, auto) minmax(132px, auto);
    grid-template-areas:
        "photo info mhd price"
        "order order tools tools";
    gap: 12px 14px;
    align-items: center;
}

.products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .order {
    grid-template-columns: minmax(124px, 150px) minmax(130px, 170px) auto 40px;
}

.products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .order:not(:has(.cart-added-badge)) {
    grid-template-columns: minmax(124px, 150px) minmax(130px, 170px) minmax(150px, 1fr);
}

.product-block-list .product-cart-button {
    white-space: nowrap;
}

.product-block-list .order .cart-added-badge {
    position: static;
    min-height: 22px;
    height: 22px;
    padding: 0 9px;
    box-shadow: none;
    align-self: center;
}

.product-block-list .product-cart-button-compact {
    width: 40px;
    min-width: 40px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
}

.products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .tools {
    grid-template-columns: repeat(2, 36px);
    justify-self: end;
    align-self: center;
    gap: 6px;
}

.products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .tools .btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    gap:0;
}

.products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .tools .inline-icon {
    margin: 0;
}

.products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .tools .inline-icon svg {
    width: 16px;
    height: 16px;
}

.product.in-cart {
    border-color: rgba(0, 137, 81, .58);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 137, 81, .28);
}

.cart-added-badge {
    position: absolute;
    right: 0;
    top: -20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 22px;
    border: 1px solid rgba(0, 137, 81, .28);
    border-radius: 999px;
    background: #e9f8f1;
    color: #047348;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(196, 0, 67, .10);
}
.product-block-list .order{
    position: unset;
}
.product-block-list .product {
    position: relative;
}
.product-block-list .cart-added-badge{
    right: unset;
    bottom: 63px;
    left: 47%;
    width: fit-content;
    top: inherit;
}

.cart-added-badge .inline-icon {
    width: 16px;
    height: 16px;
    color: inherit;
    margin-top: -5px;
}

.cart-added-badge .inline-icon svg {
    width: 14px;
    height: 14px;
}

.favorite-card .cart-added-badge {
    top: -8px;
    right: unset;
    left: 0;
}

.products.action-offer-list {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}

.products > .empty,
.products > .empty-state,
.products > .panel:has(.empty) {
    grid-column: 1 / -1;
    width: 100%;
}

.products > .empty-state,
.products > .panel:has(.empty) {
    max-width: none;
}

.products.action-offer-list .action-offer-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    border-radius: 8px;
}

.action-offer-main {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

.action-offer-main img {
    width: 96px;
    height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
}

.action-offer-info {
    min-width: 0;
}

.action-offer-kicker {
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.action-offer-name {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.action-offer-meta,
.action-offer-stock {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.action-offer-price-state {
    display: none;
}

.action-offer-staffel {
    display: grid;
    gap: 8px;
}

.action-staffel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-size: 13px;
}

.action-tier-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.action-tier-row {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    padding: 8px 10px;
    cursor: pointer;
}

.action-tier-row strong,
.action-tier-row b {
    font-size: 13px;
    line-height: 1.1;
}

.action-tier-row.active {
    border-color: var(--brand);
    background: rgba(208, 0, 72, .08);
    color: var(--brand);
}

.action-tier-row.next {
    border-color: #9fd6b7;
}

.action-staffel-hint {
    min-height: 34px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.action-offer-savings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.action-saving-badge {
    width: fit-content;
    grid-column: 1 / -1;
    border-radius: 999px;
    background: #eef8f1;
    color: #0b7a43;
    padding: 5px 9px;
    font-weight: 800;
}

.action-next-saving {
    color: var(--brand);
    font-weight: 800;
}

.action-offer-controls {
    display: grid;
    grid-template-columns: 124px auto minmax(160px, 1fr);
    gap: 8px;
    align-items: center;
    position: relative;
}

.action-offer-controls .stepper {
    width: 124px;
}

.action-offer-unit {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.action-offer-controls .btn {
    min-height: 40px;
    justify-content: center;
}

@media (max-width: 720px) {
    .products.action-offer-list {
        grid-template-columns: 1fr;
    }

    .action-offer-main {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .action-offer-main img {
        width: 78px;
        height: 78px;
    }

    .action-tier-table,
    .action-offer-controls {
        grid-template-columns: 1fr;
    }

    .action-offer-controls .stepper,
    .action-offer-controls .btn {
        width: 100%;
    }
}
.price {
    min-width: 0;
}
.order {
    display: grid;
    gap: 8px;
}
.photo {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    position: relative;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 7px;
    left: 7px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    padding: 4px 7px;
    font-size: 11px;
}

.name {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 500;
}

.product:not(.aktion-product):not(.action-offer-card) .name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 44px;
}
.cart-redesign-agb {
        padding: 16px 18px 4px;
        color: #e11d48;
        font-weight: 500;
        line-height: 1.55;
        text-align: center;

}

.meta {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    min-height: 55px;
}
.aktionen-row-list .meta, .product-row-list .meta, .product-row-list .product:not(.aktion-product):not(.action-offer-card) .name {
    min-height: unset;
}
.aktionen-row-list .product .price {
    grid-area: inherit;
}
.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.mini {
    min-height: 25px;
    border-radius: 999px;
    background: var(--soft);
    color: #58606b;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    font-size: 12px;
}

.mini.good { background: var(--green-soft); color: var(--green); }
.mini.warn { background: var(--orange-soft); color: var(--orange); }
.mini.bad { background: var(--red-soft); color: var(--red); }

.price strong {
    display: block;
    color: var(--brand);
    font-size: 22px;
    font-weight: 500;
}

.price span {
    display: block;
    margin-top: 0px;
    color: var(--muted);
    font-size: 13px;
}

.order {
    display: grid;
    gap: 8px;
}

.stepper {
    height: 38px;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.stepper button {
    border: 0;
    background: #fff;
    color: #59616d;
    font-size: 18px;
}

.stepper input,
.stepper span {
    width: 100%;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    display: grid;
    place-items: center;
    outline: 0;
    color: var(--text);
}

.quick {
    display: flex;
    gap: 5px;
}

.quick button {
    flex: 1;
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #59616d;
    font-size: 12px;
}
.icon-sprite { display: none; }

.tools {
    display: grid;
    gap: 6px;
}

.tools .btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
}

.btn.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.inline-icon svg {
    width: 15px;
    height: 15px;
}
.nav-icon svg, .category-icon svg, .inline-icon svg, .mhd-icon svg, .price-icon svg, .cart-redesign-actions svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart {
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-left: 1px solid var(--line);
    padding: 17px;
}
.cart.open { display: block; }

#sideCart.cart > .field,
#sideCart.cart .cart-card,
#sideCart.cart .cart-card:first-of-type,
#sideCart.cart .cart-card:last-of-type {
    grid-column: auto;
    grid-row: auto;
}

#sideCart.cart .cart-card:last-of-type {
    flex: 0 0 auto;
    overflow: visible;
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-right: 42px;
    margin-bottom: 12px;
}

.cart-close-btn {
    display: none;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

.cart h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.timer {
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    padding: 8px 10px;
    font-size: 13px;
}

.cart-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 12px;
}

.supplier-head {
    padding: 12px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.supplier-head strong {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.supplier-head span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.progress {
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: #edf0f4;
    overflow: hidden;
}

.progress div {
    height: 100%;
    width: 0%;
    background: var(--brand);
    transition: width .2s ease;
}

.cart-list {
        display: grid;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    grid-auto-rows: max-content;
}
.cart-card {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.cart > .cart-card:last-of-type {
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 -12px 26px rgba(29, 35, 51, .08), var(--shadow);
}

.cart-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 9px;
    padding: 11px;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child { border-bottom: 0; }

.cart-item img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.cart-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}

.cart-title strong { font-weight: 500; word-break: break-all;}

.cart-title button {
    border: 0;
    background: transparent;
    color: var(--light);
    font-size: 16px;
}

.cart-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.summary {
    padding: 12px;
    display: grid;
    gap: 9px;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    color: #565e69;
    font-size: 14px;
}

.cart-qty-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border: 1px solid #f2a4bd;
    border-radius: 999px;
    background: #fff7fa;
    color: var(--brand);
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.summary-row.total {
    border-top: 1px solid var(--line);
    padding-top: 11px;
    color: var(--text);
    font-size: 20px;
}

.summary-row.total strong { font-weight: 500; }

.note-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.warning {
    border: 1px solid #ffd28d;
    background: var(--orange-soft);
    color: #705000;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.4;
}

.drawer-panel {
    position: fixed;
    top: 72px;
    right: 0;
    width: 430px;
    height: calc(100vh - 72px);
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 44px rgba(26,32,46,.13);
    transform: translateX(102%);
    transition: transform .22s ease;
    z-index: 20;
    padding: 18px;
    overflow-y: auto;
}

.drawer-panel.open { transform: translateX(0); }

.drawer-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.drawer-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.x {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #eef0f4;
    color: #67707c;
    font-size: 18px;
}

.detail-img {
    width: 100%;
    height: 210px;
    border-radius: 18px;
    object-fit: contain;
    border: 1px solid var(--line);
    margin-bottom: 14px;
}

.detail-grid {
    display: grid;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
    color: #4e5662;
}

.detail-row span { color: var(--muted); }

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(100px);
    background: #222832;
    color: #fff;
    border-radius: 999px;
    padding: 11px 16px;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
    z-index: 30;
    width: fit-content;
    padding:   1rem;
    text-align: center;
}

.toast.show { transform: translateX(-50%) translateY(0); }

.empty {
    color: var(--muted);
    padding: 18px 12px;
    text-align: center;
}
.not-logged-in .main {
    background: white;
    width: 100%;
    max-width: 100%;
    margin: 70px auto 0;
    padding: 60px 20px 55px;
    text-align: center;
    min-height: 87dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 45px;
}
.logo img {
    max-width: 350px;
}
.sublogo img{
    width: 200px;
}

.bag {
    width: 75px;
    height: 75px;
    background: var(--mc);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-family: Georgia, serif;
    font-style: italic;
    position: relative;
}

.bag::before {
    content: "";
    position: absolute;
    top: -22px;
    width: 35px;
    height: 30px;
    border: 7px solid #bd003b;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.brand {
    font-size: 46px;
    color: #6f6f6f;
    font-weight: 300;
}

.tagline {
    max-width: 640px;
    margin: 0 auto 50px;
    padding: 16px 0;
    border-top: 2px solid #bd003b;
    border-bottom: 2px solid #bd003b;
    color: #bd003b;
    font-size: 20px;
    font-weight: bold;
    text-transform: lowercase;
    width: 100%;
}

.login-box {
    max-width: 630px;
    margin: 0 auto;
    text-align: left;
}

h1 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    font-size: 16px;
    margin-bottom: 25px;
}

.not-logged-in input {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd5e1;
    background: #eaf2ff;
    border-radius: 7px;
    padding: 0 18px;
    font-size: 17px;
    margin-bottom: 22px;
    outline: none;
}

input:focus {
    border-color: #bd003b;
    box-shadow: 0 0 0 3px rgba(189, 0, 59, 0.15);
}

.forgot {
    display: inline-block;
    margin: 5px 0 30px;
    color: #bd003b;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}

.forgot:hover {
    text-decoration: underline;
}

.not-logged-in button, .lang-btn, .rounded {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 30px !important;
    background: #bd003b;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(189, 0, 59, 0.35);
}
.lang-btn {
    line-height: 1.8;
    text-decoration: none;
}
.not-logged-in button:hover, .not-logged-in .btn {
    background: #a90035;
}

.footer {
    color: white;
    text-align: center;
    padding: 38px 20px 25px;
    font-size: 15px;
}

.footer a {
    color: white;
    text-decoration: underline;
}

.version {
    margin-top: 15px;
    font-size: 14px;
    display: inline-block;
    border: 2px solid white;
    padding: 2px 8px;
}

/* LANGUAGE SWITCH */

.lang-switch {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    border: 2px solid #bd003b !important;
    background: white !important;
    color: #bd003b !important;
    padding: 8px 14px;
    border-radius: 20px !important;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    background: #bd003b !important;
    color: white !important;
}
.more-prices {
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    color: #222;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.more-prices:hover {
    background: #e5e7eb;
}

.price-list {
    margin-top: 40px;
    border-radius: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: absolute;
    min-width: 180px;
    max-height: 200px;
    overflow: auto;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    cursor: pointer;
}
.quick button.active,
.price-item.active {
    background: #bd003b;
    color: white;
    border-color: #bd003b;
}
.price-item.active span, .price-item.active strong {
    color: white;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item span {
    color: #666;
}

.price-item strong {
    color: #111;
    font-size: 15px;
}

.hidden {
    display: none;
}
#pageLoader2 {
    display: flex;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.loader2 {
    width: 48px;
    height: 48px;
    border: 5px solid #ddd;
    border-top-color: #B20838;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile_a , #closeMobileNav{
    display: none;
}

#mobile_menu {
    display: none;
}
#mobile_menu {
    padding: 20px;
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    z-index: 999;
    background-color: white;
}
.open-menu-reley {
    display: none;
}

/* Kundennummer popup */

.company-popup {
    width: 360px;
    background: #fff;
    border-radius: 18px;
    padding: 18px 16px 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    display: none;
    position: absolute;
    z-index: 999;
}
.company-right{
    top: 60px;
    right: 4%;
}
.company-left{
    top:165px;
    left: 15px;
}

.popup-header {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.popup-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.back-btn {
    position: absolute;
    right: 0;
    top: 45%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #8f8f95;
    transition: 0.2s;
}

.back-btn:hover {
    color: #c4004b;
}

.search-wrapper {
    margin-bottom: 16px;
}

.search-wrapper input {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 14px;
    background: #f7f7f9;
    outline: none;
    transition: 0.2s;
}

.search-wrapper input:focus {
    border-color: #c4004b;
    background: #fff;
}

.company-list {
    max-height: 320px;
    overflow-y: auto;
}

.company-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 25px 7px 10px;
    border-bottom: 1px solid #ececec;
    cursor: pointer;
    transition: 0.2s;
}

.company-item:hover {
    background: #fafafa;
}

.company-item span {
    font-size: 15px;
    color: #222;
}

.company-item input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #bcbcbc;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.company-item input[type="radio"]:checked {
    border-color: #c4004b;
}

.company-item input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #c4004b;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-footer {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.save-btn {
    min-width: 200px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #d40056 0%, #b30047 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(196, 0, 75, 0.28);
    transition: 0.2s;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(196, 0, 75, 0.34);
}

.save-btn:active {
    transform: scale(0.98);
}
.fs-20 {
    font-size: 20px;
}
.fs-16 {
    font-size: 16px;
}
.fs-14 {
    font-size: 14px;
}
.fs-12 {
    font-size: 12px;
}
.sep50 {
    height: 50px;
    width: 100%;
}
.empty-cart-wrapper{
    background:#fff;
    border:1px solid #ececec;
    border-radius:32px;
    min-height:620px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:60px 20px;
    position:relative;
    overflow:hidden;
}

.empty-cart-wrapper::before{
    content:'';
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(
            circle,
            rgba(196,0,82,.06) 0%,
            rgba(196,0,82,0) 70%
    );
    top:-150px;
    right:-150px;
    pointer-events:none;
}

.empty-cart-content{
    text-align:center;
    max-width:820px;
    position:relative;
    z-index:2;
}

.empty-icon{
    width:190px;
    height:190px;
    border-radius:50%;
    background:linear-gradient(
            135deg,
            #d10056,
            #b10047
    );
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 40px;
    box-shadow:
            0 20px 50px rgba(193,0,82,.25),
            inset 0 1px 0 rgba(255,255,255,.2);
}

.empty-icon svg{
    width:95px;
    height:95px;
    stroke:#fff;
    stroke-width:1.8;
}

.empty-title{
    font-size:26px;
    color:#1f1f1f;
    margin-bottom:18px;
    letter-spacing:-0.02em;
}

.empty-text{
    font-size:16px;
    line-height:1.6;
    color:#787878;
    margin-bottom:42px;
}

.empty-actions{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

.main-btn{
    height:58px;
    padding:0 34px;
    border:none;
    border-radius:18px;
    background:linear-gradient(
            135deg,
            #d10056,
            #b00047
    );
    color:#fff;
    font-size:16px;
    font-weight:700;
    transition:.2s;
    box-shadow:0 12px 30px rgba(193,0,82,.18);
}
.brand-text{
    color: var(--brand);
}

.main-btn:hover{
    transform:translateY(-2px);
    background:linear-gradient(
            135deg,
            #bc004c,
            #a30042
    );
}

.ghost-btn{
    height:58px;
    padding:0 30px;
    border-radius:18px;
    border:1px solid #e5e5e5;
    background:#fff;
    color:#444;
    font-size:16px;
    font-weight:600;
    transition:.2s;
}

.ghost-btn:hover{
    background:#fafafa;
}

.scan-box{
    margin-bottom:28px;
    display:flex;
    align-items:center;
    gap:14px;
    background:#fff;
    border:1px solid #ececec;
    border-radius:20px;
    padding:12px 18px;
    max-width:420px;
}

.scan-input{
    border:none;
    outline:none;
    width:100%;
    font-size:15px;
    background:transparent;
}

.scan-icon{
    width:24px;
    height:24px;
    stroke:#555;
}

.empty {
    color: var(--muted);
    padding: 18px 12px;
    text-align: center;
}

.start-dashboard {
    display: none;
    gap: 14px;
}

.start-dashboard.open { display: grid; }

.toolbar.hidden,
.notifications-page.hidden,
.products.hidden,
.cart-page.hidden, #historyPage { display: none; }

.start-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.metric-card,
.dashboard-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.metric-card {
    min-height: 92px;
    padding: 13px;
    display: grid;
    gap: 9px;
}

.metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}
.metric-card strong {
    font-size: 26px;
    line-height: 1;
    font-weight: 500;
}

.metric-card span {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 14px;
    align-items: start;
}

.dashboard-stack {
    display: grid;
    gap: 14px;
}

.dashboard-panel {
    overflow: hidden;
}

.panel-head {
    min-height: 54px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.panel-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.panel-body {
    display: grid;
    gap: 0;
}

.news-item,
.order-feed-item,
.promo-item {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
}

.news-item:last-child,
.order-feed-item:last-child,
.promo-item:last-child { border-bottom: 0; }

.news-item {
    display: grid;
    gap: 7px;
}

.news-top,
.order-top,
.promo-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.news-item strong,
.order-feed-item strong,
.promo-item strong {
    font-weight: 500;
}

.news-item p,
.promo-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4; 
}

.time-badge {
    flex: 0 0 auto;
    min-height: 24px;
    border-radius: 999px;
    background: #eef0f4;
    color: #66707d;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    font-size: 12px;
}

.order-feed-item {
    display: grid;
    grid-template-columns:48px minmax(0, 1fr) auto;
    gap: 9px 12px;
    align-items: center;
}

.home-new-item .order-thumb {
    grid-row: 1 / span 2;
}

.home-new-item > div:not(.order-sum) { 
    grid-row: 1 / span 2;
}

.home-new-item .order-sum {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
}

.order-meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.order-sum {
    text-align: right;
    color: var(--brand);
    font-size: 15px;
    font-weight: 500;
    min-width: 90px;
}

.home-new-cart {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border-color: #ffd4df;
    background: #fff4f7;
    color: #e72c5b;
}

.home-new-cart:hover {
    border-color: #f7a7bb;
    background: #ffe8ef;
    color: #d91f50;
}

.mobile-app-notice {
    display: none;
}

.mobile-app-notice-logo {
    width: min(210px, 62vw);
    height: auto;
}

.mobile-app-notice-card {
    width: min(440px, calc(100vw - 32px));
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(22, 28, 37, 0.12);
    text-align: center;
}

.mobile-app-notice-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff4f7;
    color: #e72c5b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-app-notice-icon svg {
    width: 28px;
    height: 28px;
}

.mobile-app-notice h1 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.mobile-app-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.mobile-app-links {
    margin-top: 24px;
    padding-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.mobile-app-link {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.mobile-app-link a {
    display: inline-flex;
}

.mobile-app-link a img {
    width: 150px;
    max-width: 100%;
    height: auto;
}

.mobile-app-qr {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@media (max-width: 767px) {
    body:not(.not-logged-in) {
        padding: 0;
        min-height: 100vh;
        background: #f6f7f9;
    }

    .mobile-app-notice {
        min-height: 100vh;
        padding: 28px 16px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 22px;
    }

    .app {
        display: none;
    }
}

.promo-item {
    display: grid;
    gap: 10px;
}

.promo-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.promo-progress {
    height: 7px;
    border-radius: 999px;
    background: #edf0f4;
    overflow: hidden;
}

.promo-progress div {
    height: 100%;
    background: var(--brand);
}

.start-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: 13px 14px;
}

.start-actions .btn {
    min-height: 42px;
}
.nav-label {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.nav-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #f1f3f7;
    color: #69717c;
}

.cart-page {
    display: none;
    gap: 14px;
}
.cart-page.open { display: grid; }

.cart-page-top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cart-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
    align-items: start;
}

.cart-page-list {
    display: grid;
    gap: 10px;
}

.cart-page-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 128px 138px 38px;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 10px;
}

.cart-page-item img {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.cart-page-item h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 500;
}

.cart-page-meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.cart-line-sum {
    text-align: right;
}

.cart-line-sum strong {
    display: block;
    color: var(--brand);
    font-size: 18px;
    font-weight: 500;
}

.cart-line-sum span {
    color: var(--muted);
    font-size: 12px;
}

.cart-page-remove {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    font-size: 18px;
}

.supplier-summary {
    display: grid;
    gap: 10px;
    padding: 13px;
    border-bottom: 1px solid var(--line);
}

.pagination{
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:end;
    flex-wrap:wrap;
    margin-top:20px;
}

.pagination button{
    min-width:38px;
    height:38px;
    border:none;
    border-radius:10px;
    background:#f1f1f1;
    cursor:pointer;
    transition:.2s;
    font-weight:600;
}

.pagination button:hover{
    background:#ddd;
}

.pagination button.active{
    background:#111;
    color:#fff;
}

.pagination button:disabled{
    opacity:.4;
    cursor:not-allowed;
}
#cartPage {
    min-height: 100vh;
    align-content: start;
    align-items: start;
}
.showKundenPopup {
    cursor: pointer;
}
img[data-image-zoom] {
    cursor: zoom-in;
}
.image-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(4px);
}
.image-preview-overlay[hidden] {
    display: none;
}
.image-preview-overlay img {
    max-width: min(1000px, 96vw);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}
.image-preview-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
body.image-preview-open {
    overflow: hidden;
}

.mhd-icon, .price-icon, .inline-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}
.metric-card span {
    color: var(--muted);
    font-size: 12px;
}
.metric-head .inline-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
}

.start-dashboard .metric-card, .start-dashboard .dashboard-panel, .start-dashboard .overview-alert {
    box-shadow: 0 8px 22px rgba(29, 35, 51, .055);
}
.overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
    align-items: start;
}
.overview-main, .overview-side {
    display: grid;
    gap: 14px;
}
.metric-card, .dashboard-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.dashboard-panel {
    overflow: hidden;
}
.start-dashboard .metric-card, .start-dashboard .dashboard-panel, .start-dashboard .overview-alert {
    box-shadow: 0 8px 22px rgba(29, 35, 51, .055);
}

.promo-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
}
.promo-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 10px;
}

.promo-card .cart-added-badge {
    top: -10px;
    right: unset;
}
.promo-card.open {
    align-items: center;
    border-color: #f3c5d6;
    box-shadow: 0 8px 18px rgba(204, 0, 75, .08);
}
.promo-card img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 9px;
    background: var(--chip);
    filter: saturate(.82) contrast(.96);
}
.news-top, .order-top, .promo-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.promo-top > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.promo-kicker {
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}
.time-badge {
    flex: 0 0 auto;
    min-height: 24px;
    border-radius: 999px;
    background: #eef0f4;
    color: #66707d;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    font-size: 12px;
}
.promo-card p, .favorite-card p , .overview-promo-header p{
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.promo-card-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 9px;
}
.promo-card-actions .btn, .favorite-actions .btn {
    min-height: 30px; 
    padding: 0 9px;
    font-size: 12px;
    box-shadow: none;
}
.promo-card-actions .btn.primary, .favorite-actions .btn.primary {
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid #f3c5d6;
}
.promo-card-actions .btn, .favorite-actions .btn {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
    box-shadow: none;
}
.start-dashboard .favorite-card:has(.cart-added-badge) {
    border-color: rgba(0, 137, 81, .58);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 137, 81, .28);
}
.start-dashboard .favorite-card {
    border-color: #d7dee8;
    box-shadow: -2px -5px 22px rgba(15, 23, 42, .085), 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.overview-price-picker {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    margin-top: 4px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
}
.overview-price-picker .overview-progress-wrap {
    display: none;
}
.home-aktionen-price-panel {
    grid-column: 1 / -1;
    padding: 0;
}
.home-aktionen-price-panel[hidden] {
    display: none;
}
.home-aktionen-price-panel .overview-price-picker {
    margin-top: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px;
}
.overview-promo-header {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 6px 8px 12px;
    border-bottom: 1px solid var(--line);
}
.overview-promo-header img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 9px;
    background: var(--chip);
}
.overview-promo-header .promo-top {
    align-items: flex-start;
}
.overview-promo-header .time-badge {
    margin-top: 0;
}
.overview-promo-bottom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.overview-promo-block {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
    border-left: 1px solid var(--line);
    padding-left: 12px;
}
.overview-price-picker .overview-promo-block {
    min-height: 0;
    padding-left: 10px;
    gap: 6px;
}
.overview-promo-label,
.overview-promo-meta,
.overview-saving,
.overview-staffel-foot {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.overview-price-strong,
.overview-total-strong {
    display: block;
    margin-top: 4px;
    color: var(--brand);
    font-size: 16px;
    font-weight: 600;
}
.overview-qty-control {
    display: grid;
    grid-template-columns: 34px minmax(54px, 1fr) 34px;
    height: 38px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}
.overview-qty-control button {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}
.overview-qty-control button, .overview-qty-control span {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 600;
}
.overview-qty-control span {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: #fff;
    white-space: nowrap;
}
.overview-staffel-button{
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border: 1px solid #f1b7cc;
    border-radius: 7px;
    background: #fff;
    color: var(--brand);
    padding: 6px 7px;
    font-size: 12px;
}
.overview-staffel-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    padding: 6px 9px;
    border-top: 1px solid #f0f2f5;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
    background: #fff;
}
.overview-staffel-row:first-child {
    border-top: 0;
}
.overview-staffel-row.active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
}
.overview-staffel-foot {
    padding: 6px 9px 7px;
    color: var(--muted);
    font-size: 11px;
}
.overview-staffel-menu {
    display: grid;
    max-height: 88px;
    overflow: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.overview-staffel-row {
    cursor: pointer;
    border-color: var(--line);
    color: var(--text);
}
.overview-staffel-row.active {
    border-color: #f1b7cc;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}
.overview-next-tier {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) minmax(120px, .55fr);
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    border: 1px solid #d7eadf;
    border-radius: 8px;
    background: #f7fbf8;
    padding: 8px;
}
.overview-next-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #e6f5ec;
    color: #25844a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.overview-next-icon svg {
    width: 17px;
    height: 17px;
}
.overview-next-copy {
    min-width: 0;
    color: #34433a;
    font-size: 12px;
    line-height: 1.35;
}
.overview-next-copy .green {
    color: #218349;
}
.overview-progress-wrap {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
}
.overview-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8e3;
}
.overview-progress div {
    height: 100%;
    border-radius: inherit;
    background: #37a865;
}
.favorite-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 12px;
    gap: 12px;
    background: #f7f8fb;
}
.favorite-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 9px;
}

.favorite-card[data-dashboard-product-card] {
    cursor: pointer;
}
.favorite-remove {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    min-height: 24px;
    border-radius: 8px;
    padding: 0;
    color: #c90046;
    background: #fff;
    opacity: .88;
    font-size: 15px;
    line-height: 1;
}
.favorite-remove:disabled {
    opacity: .55;
    cursor: wait;
}
.favorite-card img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--chip);
    filter: saturate(.82) contrast(.96);
}
.promo-card h3, .favorite-card h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 500;
}
.favorite-price { 
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    grid-column: 1 / -1;
    text-align: center;
    color: var(--brand);
}
.favorite-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    grid-column: 1 / -1;
}
.favorite-actions .btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
}
.order-compact {
    display: grid;
    gap: 10px;
    padding: 12px;
}
.order-compact-card {
    display: grid;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px;
}
.order-compact-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.order-compact-top strong {
    font-weight: 500;
}
.order-compact-sum {
    color: var(--brand);
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
}
.order-compact-meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}
.btn.soft {
    background: var(--brand-soft);
    border-color: #f1b7cc;
    color: var(--brand);
}

.promo-tier-panel {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    margin-top: 3px;
    border-top: 1px solid var(--line);
    padding-top: 9px;
}
.promo-ladder {
    display: grid;
    gap: 12px;
    margin-top: 9px;
    padding-top: 9px;
}
.product.aktion-product .promo-ladder {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.product.aktion-product .promo-ladder.compact {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    grid-template-areas:         "title"        "scale"        "hint";
    gap: 9px;
}
.promo-ladder-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}
.promo-ladder-title strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
}
.promo-ladder span {
    display: inline;
    margin: 0;
}
.product.aktion-product > div:nth-child(2) {
    align-self: center;
    padding-right: 16px;
    border-right: 1px solid var(--line);
}
.product.aktion-product .price {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 8px;
    border-top: 0;
    padding: 0 18px 0 8px;
}
.product.aktion-product .order {
    position: relative;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}
.product.aktion-product .tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-self: start;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}
.promo-tier-panel .promo-ladder {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.promo-tier-panel .tier-summary {
    grid-template-columns: 1fr;
}

.promo-tier-panel .tier-summary-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 8px 10px;
}

.promo-tier-panel .tier-summary-cell:first-child {
    border-top: 0;
}

.tier-scale-scroll {
    overflow-x: auto;
    padding-bottom: 3px;
}

.promo-tier-panel .tier-scale {
    width: max-content;
    min-width: 100%;
    grid-template-columns: repeat(var(--tier-count), 48px);
}

.promo-tier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.promo-tier-actions .btn {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
    box-shadow: none;
}

.promo-tier-actions .btn:disabled {
    opacity: .55;
    cursor: default;
}


.tier-scale {
    --active-progress: 0%;
    --tier-inset: 7%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--tier-count), minmax(44px, 1fr));
    gap: 0;
    padding: 0 2px;
}

.tier-scale::before,
.tier-scale::after {
    content: "";
    position: absolute;
    left: var(--tier-inset);
    top: 33px;
    height: 2px;
    border-radius: 999px;
    background: #d8dde5;
    width: calc(100% - (var(--tier-inset) * 2));
}

.tier-scale::after {
    width: var(--active-progress);
    background: var(--brand);
}

.tier-node {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    color: #374151;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

.tier-node .tier-min {
    color: inherit;
    font-size: 13px;
}

.tier-node .tier-dot {
    width: 15px;
    height: 15px;
    border: 2px solid #9aa4b2;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px #fff;
}

.tier-node .tier-price {
    color: inherit;
    font-size: 12px;
    white-space: nowrap;
}

.tier-node.active {
    color: var(--brand);
}

.tier-node.active .tier-dot {
    border-color: var(--brand);
    background: var(--brand);
}

.tier-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.tier-summary-cell {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 12px;
    border-left: 1px solid var(--line);
}

.tier-summary-cell:first-child {
    border-left: 0;
}

.tier-summary-cell strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
}

.tier-summary-cell b {
    color: #596372;
    font-size: 13px;
    font-weight: 500;
}

.tier-summary-cell.active {
    background: var(--brand-soft);
    color: var(--brand);
}

.tier-summary-cell.active strong,
.tier-summary-cell.active b {
    color: var(--brand);
}

.tier-summary-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 5px;
    color: #7a8390;
    font-size: 11px;
}

.tier-summary-progress i {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand) var(--progress), #e7eaf0 var(--progress));
}

.tier-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 6px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 5px 7px;
    color: #535b66;
    font-size: 12px;
}

.tier-row.active {
    border-color: #f1b7cc;
    background: var(--brand-soft);
    color: var(--brand);
}

.tier-row strong {
    color: inherit;
    font-size: 12px;
    font-weight: 500;
}

.tier-row span {
    margin: 0;
    color: inherit;
    font-size: 12px;
}

.tier-progress {
    height: 5px;
    border-radius: 999px;
    background: #edf0f4;
    overflow: hidden;
}

.tier-progress i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--brand);
}

.saving-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #f2d18a;
    border-radius: 8px;
    background: var(--orange-soft);
    color: #705000;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
}

.saving-hint strong {
    color: #705000;
    font-size: 12px;
    font-weight: 500;
}
.product.aktion-product {
    grid-template-columns: 132px minmax(250px, .56fr) minmax(470px, 1.35fr) 184px;
    grid-template-areas:         "photo info price order"        "photo info price tools";
    min-height: 216px;
    gap: 0 18px;
    padding: 18px;
}
.product.aktion-product .photo {
    border-radius: 12px;
    align-self: center;
}
.product.aktion-product .photo img {
    object-fit: contain;
}
.product.aktion-product .tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-self: start;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}
.mhd-box {
    display: grid;
    gap: 4px;
    border: 0;
    border-left: 3px solid #d7dee8;
    border-radius: 0;
    background: transparent;
    padding: 4px 0 4px 10px;
    box-shadow: none;
}
.mhd-box.bad {
    border-left-color: var(--red);
    background: transparent;
    color: var(--red);
}
.mhd-box.ok {
    border-left-color: #d7dee8;
    background: transparent;
    color: #596273;
}
.supplier-limit {
    border-radius: 8px;
    padding: 6px 18px;
    font-weight: 500;
}
.supplier-limit.ok {
    background: var(--green-soft);
    border: 1px solid var(--green);
}
.supplier-limit.warn {
    border-color: #f4bbc1;
    background: var(--red-soft);
    border:1px solid var(--red);
}
.supplier-progress-text {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
}
.supplier-limit.ok .supplier-progress-text {
    color: var(--green);
}
.supplier-limit.warn .supplier-progress-text {
    color: var(--red);
}
.supplier-progress div {
    height: 100%;
    border-radius: inherit;
}
.supplier-limit.ok  .supplier-progress div {
    background: var(--green);
}
.supplier-limit.warn  .supplier-progress div {
    background: var(--red);
}
.mhd-box span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}
.mhd-box strong {
    display: block;
    color: #111827;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 600;
}
.mhd-box.bad strong {
    color: var(--red);
}
.mhd-box span {
    display: block;
    margin-top: 0;
    font-size: 11px;
    font-weight: 500;
}
.mhd-icon, .price-icon, .inline-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}
.mhd-head {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    color: #7b8491;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mhd-icon, .price-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .68);
}
.mhd-box span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}
.mhd-head .label {
    display: block;
}
.product.aktion-product .promo-ladder.compact .tier-summary {
    display: none;
}
.product.aktion-product .order::before {
    content: "Gewaehlte Menge";
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
}
.product.aktion-product .order > .btn.primary {
    grid-column: 2;
    min-width: 0;
    min-height: 40px;
    border-radius: 9px;
    font-size: 13px;
    padding: 0 8px;
}
.btn.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.product.aktion-product .tools .btn, .order .btn {
    min-height: 39px;
    font-size: 13px;
}
.product.aktion-product .order > .btn.primary {
    grid-column: auto;
    min-height: 50px;
    font-size: 14px;
}
.product.aktion-product .price > span {
    grid-column: 1;
    margin-top: 0;
    font-size: 11px;
}
.product.aktion-product .price > span {
    font-size: 12px;
}
.aktion-price-module {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.aktion-price-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}
.aktion-price-current {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-width: 0;
}
.aktion-selected-count {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}
.aktion-tier-label {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}
.aktion-tier-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.tier-summary-card {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 8px;
    min-width: 148px;
    min-height: 50px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
}
.tier-summary-card:disabled {
    cursor: default;
    opacity: .72;
}
.tier-summary-card span {
    grid-column: 1 / -1;
    color: inherit;
    font-size: 11px;
    line-height: 1.2;
}
.tier-summary-card strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
}
.tier-summary-card b {
    color: #535b66;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}
.tier-summary-card.active {
    border-color: var(--brand);
    background: #fff;
    box-shadow: inset 3px 0 0 var(--brand);
    color: var(--brand);
}
.tier-summary-card.active strong,
.tier-summary-card.active b {
    color: var(--brand);
}
.tier-toggle {
    justify-self: start;
    width: auto;
    min-height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.tier-toggle:hover {
    text-decoration: underline;
}
.aktion-tier-table-wrap {
    display: grid;
    gap: 6px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
}
.aktion-tier-table-head {
    display: grid;
    grid-template-columns: 64px minmax(90px, 1fr) 78px;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}
.aktion-tier-table-head strong {
    grid-column: 1 / -1;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}
.aktion-tier-table {
    display: grid;
    gap: 0;
    max-height: 180px;
    overflow: auto;
    border-top: 1px solid var(--line);
}
.aktion-tier-row {
    display: grid;
    grid-template-columns: 64px minmax(90px, 1fr) 78px;
    gap: 8px;
    align-items: center;
    min-height: 36px;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
}
.aktion-tier-row span {
    color: inherit;
    font-size: 11px;
    font-weight: 600;
}
.aktion-tier-row strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
}
.aktion-tier-row b {
    color: #596372;
    font-size: 11px;
    font-weight: 500;
}
.aktion-tier-row.active {
    background: var(--brand-soft);
    margin: 0 -6px;
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 6px;
}
.aktion-tier-row.active span,
.aktion-tier-row.active strong,
.aktion-tier-row.active b {
    color: var(--brand);
}
.mh-350{
    min-height: 350px;
}
.empty {
    color: var(--muted);
    padding: 18px 12px;
    text-align: center;
}
.favorite-price strong,
.order-sum strong {
    display: block;
    color: var(--brand);
    font-size: 16px;
}
.favorite-price span,
.order-sum span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

/* SUPPLIER LIST */

.supplier-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}

/* CARD */

.supplier-card{
    display:flex;
    align-items:center;
    gap:18px;
    background:#fbfbfc;
    border:1px solid #f0f0f2;
    border-radius:24px;
    padding:18px;
    transition:.25s;
    cursor:pointer;
}

.supplier-card:hover{
    transform:translateY(-2px);
    background:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
}

.price-box{
    width:82px;
    min-width:82px;
    background:#fff1f4;
    border:1px solid #ffd6e0;
    border-radius:20px;
    padding:14px 10px;
    text-align:center;
}

.price-box strong {
    display: block;
    font-size: 16px;
    color: #980038;
    font-weight: 500;
    margin-bottom: 0px;
    letter-spacing: -1px;
}
.price-box span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.price-box small{
    display:inline-block;
    background:#ffdce7;
    color:#980038;
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}
.modal-header {
    margin-bottom: 15px;
}

/* CONTENT */

.supplier-content{
    flex:1;
}

.supplier-content h4{
    font-weight:500;
    font-size:14px;
    color:#111827;
    margin-bottom:0px;
}

.supplier-content p{
    color:#8b9098;
    font-size:15px;
    font-weight:500;
}

.available{
    color:#16a34a !important;
    font-weight:700 !important;
}

/* ARROW */

.arrow{
    font-size:38px;
    color:#980038;
    opacity:.55;
    transition:.2s;
}

.supplier-card:hover .arrow{
    opacity:1;
    transform:translateX(3px);
}

/* INFO BOX */

.info-box{
    margin-top:22px;
    display:flex;
    gap:16px;
    background:#fff7f9;
    border:1px solid #ffe2ea;
    border-radius:22px;
    padding:8px;
    margin-bottom: 20px;
    align-items: center;
}

.info-icon{
    width:44px;
    min-width:44px;
    height:44px;
    border-radius:14px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#980038;
    font-weight:800;
    font-size:20px;
}

.info-box strong{
    display:block;
    color:#980038;
    font-size:12px;
    margin-bottom:6px;
    font-weight: 600;
}

.info-box p{
    color:#7b7f87;
    font-size:14px;
    line-height:1.5;
}

/* PRODUCT INFO */

.product-info{
    display:flex;
    gap:18px;
    padding-bottom:24px;
    border-bottom:1px solid #f0f0f3;
    margin-bottom:22px;
}

.product-image {
    width: 85px;
    min-width: 85px;
    height: 85px;
    border-radius: 22px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #f2f2f2;
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.product-text{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.product-text h3{
    font-size:16px;
    line-height:1.2;
    font-weight:600;
    color:#111827;
    margin-bottom:10px;
}

.product-text p{
    color:#6b7280;
    font-size:12px;
    margin-bottom:8px;
}

.product-text span{
    display:inline-flex;
    align-self:flex-start;
    background:#f4f4f6;
    color:#8a8f98;
    padding:8px 14px;
    border-radius:12px;
    font-size:15px;
    font-weight:500;
}

.cart-empty-state {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 28px 10px 26px;
    text-align: center;
}

.cart-empty-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%);
    border: 1px solid #ffd3e3;
    color: var(--brand);
    box-shadow: 0 14px 30px rgba(208, 0, 74, .12);
}

.cart-empty-icon svg {
    width: 34px;
    height: 34px;
}

.cart-empty-state strong {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
}

.cart-empty-state p {
    max-width: 250px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.cart-empty-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 4px;
}

.cart-empty-actions .btn {
    min-height: 38px;
    font-size: 13px;
}


.order-success-page {
    display: grid;
    gap: 14px;
}

.order-success-page.hidden { display: none; }

.order-success-hero {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid #bde5d4;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff 0%, #f0fbf5 100%);
    box-shadow: var(--shadow);
    padding: 22px;
}

.order-success-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #e6f7ee;
    color: #14833d;
}

.order-success-icon svg {
    width: 36px;
    height: 36px;
}

.order-success-copy h2 {
    margin: 3px 0 6px;
    font-size: 26px;
    font-weight: 600;
}

.order-success-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.order-success-kicker {
    color: #14833d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.order-success-number {
    min-width: 210px;
    display: grid;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 13px 15px;
    text-align: right;
}

.order-success-number span {
    color: var(--muted);
    font-size: 12px;
}

.order-success-number strong {
    color: var(--brand);
    font-size: 22px;
    font-weight: 600;
}

.order-success-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.order-success-next {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.order-success-line {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.order-success-line .nav-icon {
    width: 30px;
    height: 30px;
}

.order-success-line strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.order-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0 14px 14px;
}
.action-offer-list {
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 16px;
    align-items: start !important;
}

.action-offer-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 210px !important;
    grid-template-rows: minmax(190px, auto) auto auto !important;
    grid-template-areas:
        "main staffel"
        "savings savings"
        "controls controls" !important;
    gap: 14px 16px !important;
    min-height: auto !important;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 14px !important;
    background: #fff;
    padding: 16px !important;
    box-shadow: 0 8px 22px rgba(29, 35, 51, .05);
}
.action-offer-card .action-offer-price-state {
    display: none !important;
}  
.action-offer-card .action-offer-staffel {
    grid-area: staffel !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100%;
    max-width: none;
}

.action-offer-main {
    grid-area: main;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

.action-offer-main img {
    width: 112px;
    height: 112px;
    border-radius: 12px;
    object-fit: cover; 
    background: var(--chip);
}

.action-offer-info {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 7px;
    min-width: 0;
    min-height: 0;
    height: auto;
}

.action-offer-kicker {
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.action-offer-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    grid-column: 1;
    order: 1;
}

.action-offer-kicker-row .action-offer-kicker {
    margin-bottom: 0;
}

.action-offer-kicker-row .mini {
    width: fit-content;
}

.action-offer-name {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.22;
    overflow-wrap: anywhere;
    display: block;
    overflow: hidden;
    max-height: 44px;
    grid-column: 1;
    order: 2;
    justify-self: start;
}

.action-offer-meta,
.action-offer-stock {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.action-offer-meta {
    display: block;
    overflow: hidden;
    max-height: 42px;
    grid-column: 1;
    order: 3;
}

.action-offer-info .action-offer-price-state {
    display: grid !important;
    grid-area: auto !important;
    grid-column: 1 !important;
    gap: 2px;
    min-height: 32px;
    padding: 0;
    margin-top: 0;
    order: 5;
    justify-self: start;
    text-align: left;
}

.action-offer-info .aktion-price-current {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    color: var(--brand);
}

.action-offer-info .stuck_price {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.action-offer-info .carton_price {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.action-offer-stock {
    color: #1f2937;
    font-weight: 500;
    grid-column: 1;
    order: 4;
}

.action-offer-stock span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 4px 8px;
    color: #4b5563;
    font-weight: 500;
}

.action-offer-controls {
    grid-area: controls;
    display: grid;
    grid-template-columns: 124px auto minmax(180px, 1fr) 44px;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
}

.action-offer-controls .stepper {
    height: 44px;
    grid-template-columns: 38px 1fr 38px;
    border-radius: 10px;
}

.action-offer-unit {
    display: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

.action-offer-controls > .btn {
    min-height: 44px;
    font-size: 14px;
}

.action-offer-card .action-offer-savings {
    grid-area: savings;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 34px;
    padding-top: 4px;
    border-top: 1px solid #eef1f5;
    color: #6b7280;
    font-size: 13px;
}
.action-offer-card.aktion-product .stepper input,
.action-offer-card.aktion-product .stepper span {
    font-size: 16px !important;
    font-weight: 400 !important;
}
.action-offer-card.aktion-product .stepper input::-webkit-outer-spin-button,
.action-offer-card.aktion-product .stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.action-offer-card.aktion-product .stepper input[type=number] {
    -moz-appearance: textfield;
}
.action-offer-card.aktion-product .stepper span:after {
    display: none;
}
.action-offer-savings span {
    white-space: nowrap;
}

.action-offer-savings span:not(.action-saving-badge):not(.action-next-saving) {
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.action-offer-card .action-offer-controls .btn.primary.icon-btn {
    border-color: #f2a4bd;
    background: #fff4f8;
    color: var(--brand);
    box-shadow: none;
    grid-column: 3;
}

.action-offer-card .action-offer-detail-btn {
    grid-column: 4;
    width: 44px;
    min-width: 44px;
    padding: 0;
}

.action-offer-controls .cart-added-badge {
    position: static; 
    padding: 0 10px;
    box-shadow: none;
}

.action-offer-savings span:nth-child(2) {
    flex: 1;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
}

.action-offer-card .action-saving-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    border-radius: 999px;
    background: #e8f8ef;
    color: #128747;
    padding: 5px 9px;
    font-weight: 600;
    grid-column: auto;
}

.action-next-saving {
    color: var(--brand);
    font-weight: 600;
}

body[data-view="aktionen"] .action-offer-controls .btn.primary {
    border-color: #f2a4bd;
    background: #fff4f8;
    color: var(--brand);
    box-shadow: none;
}

body[data-view="aktionen"] .action-offer-controls .btn.primary:hover {
    background: #ffe8f1;
    border-color: #ec6f9a;
}
.account-page {
    display: grid;
    gap: 12px;
}

.account-hero {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px 14px;
}

.account-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 20px;
    font-weight: 600;
}

.account-hero h2 {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 600;
}

.account-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.account-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.account-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #596273;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 500;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(50%, 2.45fr) repeat(2, minmax(245px, 0.8fr));
    gap: 12px;
    align-items: stretch;

}

.account-side {
    display: contents;
}

.account-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px;
    min-width: 0;
    align-content: start;
}

.account-panel h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.account-profile-panel {
    gap: 10px;
    min-height: 0;
}

.account-profile-intro {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.account-profile-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.account-profile-intro h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
}

.account-profile-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.account-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.account-kpi {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    padding: 9px;
}

.account-kpi span {
    color: var(--muted);
    font-size: 12px;
}

.account-kpi strong {
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.account-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    border-top: 1px solid var(--line);
    padding-top: 2px;
}

.account-branch-grid {
    display: grid;
    gap: 8px;
}

.account-branch-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    text-align: left;
}

.account-branch-card.active {
    border-color: #d7dee8;
    background: #f8fafc;
}

.account-branch-card strong {
    display: block;
    color: #111827;
    font-weight: 600;
    margin-bottom: 2px;
}

.account-branch-card span {
    color: var(--muted);
    font-size: 12px;
}

.account-branch-actions {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.account-branch-actions > select.d-none {
    display: none !important;
}

.account-company-list {
    max-height: 76px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.account-company-list .company-item {
    border: 0;
    border-bottom: 1px solid var(--line);
}

.account-company-list .company-item:last-child {
    border-bottom: 0;
}

.profile-password-form {
    display: none;
    grid-template-columns:  auto;
    gap: 8px;
}

.profile-password-form.open {
    display: grid;
}

.account-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.account-panel-sub {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.account-doc-panel {
    grid-column: 1 / -1;
    min-width: 0;
}

.account-row {
    display: grid;
    grid-template-columns:minmax(92px, .25fr) minmax(0, 1fr);
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
}

.account-row.full {
    grid-column: auto;
}

.account-row:first-of-type, .account-row:nth-child(2) {
    border-top: 0;
}

.account-row span {
    color: var(--muted);
    font-size: 13px;
}

.account-row strong {
    font-weight: 600;
    line-height: 1.35;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.account-docs {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    min-width: 0;
}

.account-doc-menu {
    display: grid;
    gap: 8px;
    align-content: start;
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
}

.account-doc-link {
    display: grid;
    gap: 3px;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #111827;
    padding: 10px 11px;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
}

.account-doc-link strong {
    font-size: 14px;
    font-weight: 600;
}

.account-doc-link span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.account-doc-link.active {
    border-color: #f3c5d6;
    background: var(--brand-soft);
    color: var(--brand);
}

.account-doc-link.active span {
    color: #9f315c;
}

.account-doc-content {
    min-height: 520px;
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 0;
    min-width: 0;
}

.account-doc-page {
    display: none;
    gap: 10px;
    padding: 18px 20px;
}

.account-doc-page.active {
    display: grid;
}

.account-doc-page:has(.legal-reader) {
    padding: 0;
}

.account-doc-page h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.account-doc-page p {
    margin: 0;
    color: #535b66;
    line-height: 1.45;
}

.account-doc-page ul {
    margin: 0;
    padding-left: 18px;
    color: #535b66;
    line-height: 1.5;
}

.legal-reader {
    display: grid;
    gap: 0;
}

.legal-reader-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.legal-reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}
.legal-reader h2 {
    font-size: 16px;
}
.legal-reader .card {
    border: 0px solid var(--line);
    border-radius: 0;
    background: #fff;
    box-shadow: unset;
    padding: 0px;
}
.legal-reader .list-group-flush>.list-group-item {
    border-width: 0;
}
.legal-reader .list-group {
    padding: 0 !important;
    margin: 0 !important;
}
.legal-reader .list-group-item {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.legal-reader .list-group-item p {
    display: block !important;
    margin-bottom: 0 !important;
}
.legal-reader-meta span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #596273;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 500;
}

.legal-reader-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.legal-reader-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
}

.legal-reader-body .legal-toc {
    display: none;
}

.legal-toc {
    position: sticky;
    top: 0;
    display: grid;
    gap: 6px;
    max-height: 560px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: #fbfcfe;
    padding: 14px;
}

.legal-toc-title {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 2px;
}

.legal-toc a {
    display: block;
    border-radius: 8px;
    color: #4e5661;
    padding: 7px 8px;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.25;
}

.legal-toc a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.legal-text {
    display: grid;
    gap: 0;
    min-width: 0;
    background: #fff;
}

.legal-text-db {
    display: block;
    padding: 18px 22px;
    color: #535b66;
    line-height: 1.55;
}

.legal-text-db p,
.legal-text-db ul,
.legal-text-db ol {
    margin: 0 0 12px;
}

.legal-text-db h1,
.legal-text-db h2,
.legal-text-db h3,
.legal-text-db h4,
.legal-text-db h5 {
    margin: 0 0 10px;
    color: #111827;
}

.legal-section {
    border: 0;
    border-bottom: 1px solid #eef1f5;
    border-radius: 0;
    background: #fff;
    padding: 18px 22px;
}

.legal-section h5 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.legal-section p {
    margin: 0;
    color: #535b66;
    line-height: 1.5;
}

.legal-page-mark {
    margin-top: 10px;
    color: #8a94a6;
    font-size: 11px;
    text-align: right;
}

.language-option {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
    color: var(--text);
    text-decoration: none ;
}

.language-option.active {
    border-color: #f3c5d6;
    background: var(--brand-soft);
    color: var(--brand);
}

.security-list {
    display: grid;
    gap: 8px;
}

.security-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.security-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.security-item span {
    color: var(--muted);
    font-size: 12px;
}

.logout-box {
    display: grid;
    gap: 10px;
    border: 1px solid #f4bbc1;
    border-radius: var(--radius);
    background: var(--red-soft);
    padding: 14px;
}

.stat-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 12px;
}

.stat-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px;
}

.stat-panel h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 500;
}

.stat-bars {
    display: grid;
    gap: 14px;
}

.stat-bar-row {
    display: grid;
    gap: 7px;
}

.stat-bar-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.stat-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #edf1f6;
}

.stat-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}

.stat-insights {
    display: grid;
    gap: 10px;
}

.stat-insight {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px;
    background: #fff;
}

.stat-insight strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
}

.stat-insight p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.stats-page,
.history-page {
    display: grid;
    gap: 12px;
}

.stats-date-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.stats-date-filter label {
    display: grid;
    gap: 5px;
    min-width: 170px;
    color: var(--muted);
    font-size: 12px;
}
.stats-date-filter .stats-date-range {
    min-width: 360px;
}
.stats-date-range .date-picker {
    position: relative;
}
.stats-date-range .date-picker-input-group {
    display: flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.stats-date-range .date-picker-input {
    width: 132px;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 9px 10px;
    color: var(--text);
    background: transparent;
}
.stats-date-range .date-picker-separator::before {
    content: "—";
    color: var(--muted);
}
.stats-date-range .date-picker-indicator,
.stats-date-range .date-picker-cleaner {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--muted);
    cursor: pointer;
}
.stats-date-range .date-picker-indicator::before {
    content: "▦";
    font-size: 18px;
}
.stats-date-range .date-picker-cleaner::before {
    content: "×";
    font-size: 20px;
}
.stats-date-range .date-picker-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    display: none;
    min-width: 330px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 28px rgba(29, 35, 51, .18);
}
.stats-date-range .date-picker.show .date-picker-dropdown {
    display: block;
}
.stats-date-range .date-picker-calendars,
.stats-date-range .calendars {
    display: flex;
    gap: 14px;
}
.stats-date-range .calendar {
    min-width: 300px;
}
.stats-date-range .calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.stats-date-range .calendar-nav-prev,
.stats-date-range .calendar-nav-next,
.stats-date-range .calendar-nav-date {
    display: flex;
    align-items: center;
    gap: 2px;
}
.stats-date-range .calendar-nav .btn {
    min-width: 30px;
    min-height: 30px;
    padding: 4px 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}
.stats-date-range .calendar-nav .btn:hover {
    background: var(--chip);
}
.stats-date-range .calendar-nav-icon-prev::before { content: "‹"; }
.stats-date-range .calendar-nav-icon-next::before { content: "›"; }
.stats-date-range .calendar-nav-icon-double-prev::before { content: "«"; }
.stats-date-range .calendar-nav-icon-double-next::before { content: "»"; }
.stats-date-range .calendar table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}
.stats-date-range .calendar th {
    padding: 4px 0 6px;
    color: var(--muted);
    font-weight: 600;
}
.stats-date-range .calendar-cell {
    padding: 1px;
    text-align: center;
    cursor: pointer;
}
.stats-date-range .calendar-cell-inner {
    display: grid;
    place-items: center;
    min-height: 30px;
    border-radius: 6px;
}
.stats-date-range .calendar-cell:hover .calendar-cell-inner,
.stats-date-range .calendar-cell.range .calendar-cell-inner {
    background: var(--chip);
}
.stats-date-range .calendar-cell.selected .calendar-cell-inner {
    color: #fff;
    background: var(--brand);
}
.stats-date-range .calendar-cell.previous,
.stats-date-range .calendar-cell.next {
    color: var(--muted);
    opacity: .55;
}
@media (max-width: 640px) {
    .stats-date-filter .stats-date-range,
    .stats-date-range .calendar,
    .stats-date-range .date-picker-dropdown {
        min-width: 0;
        width: 100%;
    }
    .stats-date-range .date-picker-calendars,
    .stats-date-range .calendars {
        display: block;
    }
    .stats-date-range .calendar + .calendar {
        margin-top: 12px;
    }
}

.stats-date-filter .btn {
    min-height: 40px;
}

.stats-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
    gap: 12px;
    align-items: start;
}

.stats-dashboard > .stat-panel {
    align-self: start;
    height: stretch;
}

.stats-wide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stats-mini-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 14px;
}

.stats-mini-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.stats-mini-card strong {
    display: block;
    color: #111827;
    font-size: 23px;
    font-weight: 600;
}

.stats-mini-card small {
    display: block;
    margin-top: 6px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}

.stats-table,
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.stats-table th,
.history-table th {
    color: #596273;
    background: #fbfcfe;
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    text-align: left;
    font-weight: 600;
}

.stats-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.stats-sort-button::after {
    content: '↕';
    color: var(--muted);
    font-size: 12px;
}

.stats-sort-button.asc::after { content: '↑'; }
.stats-sort-button.desc::after { content: '↓'; }

.stats-table td,
.history-table td {
    border-bottom: 1px solid #eef1f5;
    padding: 12px;
    color: #4b5563;
    vertical-align: middle;
}

.stats-table td strong,
.history-table td strong {
    color: #111827;
    font-weight: 600;
}


@media (max-width: 560px) {
    .action-offer-card {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-template-areas:
            "main"
            "staffel"
            "savings"
            "controls" !important;
        min-height: auto !important;
    }

    .action-offer-card .action-offer-staffel {
        align-self: stretch;
    }

    .action-offer-controls {
        grid-template-columns: 1fr !important;
    }

    .action-offer-controls .stepper,
    .action-offer-controls .btn {
        width: 100%;
    }
}

.action-offer-staffel {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    align-self: stretch;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.action-staffel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.action-staffel-head strong {
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.action-staffel-head span {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}
.action-offer-card .action-tier-table {
    height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    display: block;
}  

.action-offer-card .action-tier-row {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 32px;
    padding: 0 11px;
    border: 0;
    border-top: 1px solid #eef1f5;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.action-offer-card .action-tier-row:first-child {
    border-top: 0;
}

.action-offer-card .action-tier-row strong {
    color: #111827;
    font-weight: 600;
}

.action-offer-card .action-tier-row b {
    color: #111827;
    font-weight: 600;
    text-align: right;
}

.action-offer-card .action-tier-row:hover {
    background: #f8fafc;
}

.action-offer-card .action-tier-row.active {
    background: #fff4f8;
    color: var(--brand);
}

.action-offer-card .action-tier-row.active strong,
.action-offer-card .action-tier-row.active b {
    color: var(--brand);
}

.action-staffel-hint {
    display: none;
    padding: 8px 10px;
    border-top: 1px solid var(--line);
    background: #fff;
    color: #5b6472;
    font-size: 10px;
    line-height: 1.35;
}

.action-staffel-hint b {
    color: var(--brand);
    font-weight: 600;
}

.action-results-footer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px 2px 4px;
    color: #4b5563;
    font-size: 12px;
}
@media (max-width: 1980px) and (min-width: 1200px) {
    .start-dashboard .overview-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1980px) and (min-width: 1200px) {
    .start-dashboard .overview-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .product.aktion-product {
        grid-template-columns: 120px minmax(220px, .8fr) minmax(360px, 1.2fr);
    }
    .product.aktion-product .order {
        grid-column: 2 / -1;
        margin-top: 12px;
        padding-left: 0;
        border-left: 0;
    }
}
@media (max-width: 760px) {
    .product.aktion-product {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
    }
    .product.aktion-product .photo {
        width: 112px;
        height: 112px;
    }
    .product.aktion-product .price,
    .product.aktion-product .order {
        grid-column: 1 / -1;
        padding: 0;
        border-left: 0;
    }
    .product.aktion-product > div:nth-child(2) {
        padding-right: 0;
        border-right: 0;
    }
    .aktion-tier-summary {
        grid-template-columns: 1fr;
    }
    .aktion-tier-table {
        grid-auto-columns: minmax(116px, 42%);
    }
}
.product.aktion-product.expanded-card {
    display: grid;
    grid-template-columns: 280px minmax(520px, 1fr) 300px;
    grid-template-areas: "media main order";
    gap: 0;
    min-height:305px;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
}
.aktion-media {
    grid-area: media;
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
.aktion-media .badge {
    justify-self: start;
    min-height: 28px;
    border-radius: 10px;
    padding: 5px 12px;
    font-size: 13px;
    z-index: 2;
}
.aktion-media .photo {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.aktion-media .photo img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(35, 43, 56, .16));
}
.image-zoom {
    position: absolute;
    right: 12px;
    bottom: 68px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #586272;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(35, 43, 56, .08);
    cursor: pointer;
}
.stock-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #cfeadd;
    border-radius: 10px;
    background: #fff;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}
.stock-pill::before {
    content: "✓";
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid #20a56f;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
}
.stock-pill.bad {
    border-color: #f4bbc1;
    color: var(--red);
}
.aktion-main {
    grid-area: main;
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 16px;
}
.aktion-top {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.aktion-top .name, .supplier-info h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}
.aktion-top .meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.aktion-top .tags {
    margin-top: 10px;
}
.aktion-top .price {
    display: grid;
    gap: 8px;
    min-width: 260px;
}
.aktion-top .aktion-price-current {
    display: flex;
    align-items: baseline;
    gap: 18px;
    color: var(--brand);
}
.aktion-top .stuck_price {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}
.aktion-top .carton_price {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.price-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #424b58;
    font-size: 12px;
    font-weight: 600;
}
.info-dot {
    width: 21px;
    height: 21px;
    display: inline-grid !important;
    place-items: center;
    border: 2px solid #7c8795;
    border-radius: 50%;
    color: #647082;
    font-size: 11px;
    font-weight: 800;
}
.aktion-price-module {
    gap: 9px;
}
.staffel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
}
.tag-icon {
    width: 22px;
    height: 22px;
}
.tier-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}
.aktion-tier-summary-expanded {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 2px 10px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}
.tier-card {
    flex: 0 0 140px;
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    text-align: center;
    color: #5f6876;
    cursor: pointer;
    scroll-snap-align: center;
}
.tier-card.active {
    border-color: #f04d86;
    color: var(--brand);
    position: relative;
    background: var(--red-soft);
}
button.tier-card.active:before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid var(--brand);
}
.tier-card span {
    font-size: 11px;
    font-weight: 700;
}
.tier-card strong {
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}
.tier-card b {
    font-size: 12px;
    font-weight: 600;
}
.tier-arrow {
    flex: 0 0 54px;
    display: grid;
    justify-items: center;
    gap: 3px;
    color: #697486;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
.tier-arrow::after {
    content: "→";
    color: #7d8795;
    font-size: 24px;
    font-weight: 300;
    line-height: .55;
}
.tier-toggle {
    justify-self: end;
    font-size: 12px;
    text-decoration: underline;
}
.table-title {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
}
.price-table {
    display: grid;
    gap: 6px;
}
.price-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    font-size: 12px;
}
.price-table th,
.price-table td {
    height: 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
}
.price-table tr:last-child th,
.price-table tr:last-child td {
    border-bottom: 0;
}
.price-table th:last-child,
.price-table td:last-child {
    border-right: 0;
}
.price-table th {
    width: 92px;
    color: #424b58;
    background: #fbfcfe;
    font-weight: 800;
}
.price-table td button {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.price-table td {
    color: #2f3845;
    font-weight: 600;
}
.price-table td.active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 500;
}
.product.aktion-product.expanded-card .saving-hint {
    display: grid;
    justify-content: stretch;
    gap: 3px;
    min-height: 34px;
    align-items: center;
    border-radius: 8px;
    font-size: 12px;
    width: fit-content;
}
.product.aktion-product.expanded-card .saving-hint span {
    color: #705000;
    font-size: 12px;
}
.product.aktion-product.expanded-card .order {
    grid-area: order;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    border-left: 1px solid var(--line);
    background: #fff;
}
.product.aktion-product.expanded-card .order::before {
    content: none;
}
.product.aktion-product.expanded-card .order h3 {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
}
.product.aktion-product.expanded-card .stepper {
    height: 40px;
    grid-template-columns: 44px 1fr 44px;
    border-radius: 9px;
}
.product.aktion-product.expanded-card .stepper button,
.product.aktion-product.expanded-card .stepper input,
.product.aktion-product.expanded-card .stepper span {
    font-size: 18px;
}
.product.aktion-product.expanded-card .stepper input {
    font-weight: 500;
    appearance: textfield;
}
.product.aktion-product.expanded-card .stepper input:focus {
    box-shadow: unset;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.product.aktion-product.expanded-card .stepper input::-webkit-outer-spin-button,
.product.aktion-product.expanded-card .stepper input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}
.product.aktion-product.expanded-card .quick {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}
.product.aktion-product.expanded-card .quick button {
    min-height: 30px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.product.aktion-product.expanded-card .order > .btn.primary {
    min-height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}
.product.aktion-product.expanded-card .order > .btn:not(.primary) {
    min-height: 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}
.long-arrow {
    position: relative; /* Длина стрелки */
    height: 1px;           /* Толщина стрелки */
    background-color: #697486;/* Цвет стрелки */
    color: #697486;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
.long-arrow span {
    display: block;
    margin-top: -20px;
}

.long-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;             /* Центрирование наконечника */
    width: 6px;            /* Размер наконечника */
    height: 6px;           /* Размер наконечника */
    border-top: 1px solid #697486;
    border-right: 1px solid #697486;
    transform: rotate(45deg);
}
.order .inline-icon svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 1320px) {
    .product.aktion-product.expanded-card {
        grid-template-columns: 240px minmax(0, 1fr);
        grid-template-areas:
            "media main"
            "order order";
    }
    .product.aktion-product.expanded-card .order {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}
@media (max-width: 860px) {
    .product.aktion-product.expanded-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "media"
            "main"
            "order";
    }
    .aktion-top,
    .tier-flow,
    .aktion-tier-summary-expanded {
        grid-template-columns: 1fr;
    }
    .tier-arrow {
        display: none;
    }
    .aktion-media .photo {
        min-height: 220px;
    }
    .aktion-top .price {
        min-width: 0;
    }
    .tier-toggle {
        justify-self: start;
    }
}
.info-page {
    display: grid;
    gap: 14px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.panel-head {
    min-height: 54px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}
.info-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.info-card {
    display: grid;
    gap: 12px;
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 15px;
    cursor: pointer;
}
.info-card:focus-visible,
.info-card:hover {
    border-color: #f1b7cc;
    box-shadow: 0 8px 22px rgba(29, 35, 51, .06);
}
.info-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}
.info-card h3 {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 500;
}
.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.info-card-value {
    color: var(--brand);
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
}
.info-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
.history-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
    align-items: start;
}
.history-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(150px, auto) minmax(150px, auto) minmax(160px, auto) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.history-toolbar .btn {
    min-height: 44px;
    white-space: nowrap;
}
.stat-panel {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.stat-panel > h3 {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 600;
}
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.history-table th,
.history-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}
.history-table th {
    background: var(--soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.history-table tbody tr {
    cursor: pointer;
}
.history-table tbody tr:hover {
    background: #fff7fa;
}
.history-table tbody tr:last-child td {
    border-bottom: 0;
}
.history-table .btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}
.history-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: #eef1f5;
    color: #5f6875;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 600;
}
.history-status.status-1 {
    background: #fff4cf;
    color: #8a5a00;
}
.history-status.status-2 {
    background: var(--green-soft);
    color: var(--green);
}
.history-status.status-3 {
    background: var(--red-soft);
    color: var(--red);
}
.history-status.status-4 {
    background: #eef1f5;
    color: #5f6875;
}
.history-status.hold {
    background: var(--orange-soft);
    color: var(--orange);
}
.history-status.open {
    background: var(--brand-soft);
    color: var(--brand);
}
.history-detail-list {
    display: grid;
}
.history-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.history-detail-row:last-child {
    border-bottom: 0;
}
.history-detail-row strong,
.history-detail-row span {
    display: block;
}
.history-detail-row span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.history-detail-row > span {
    margin-top: 0;
    color: var(--text);
    display: flex;
    align-items: center;
}
.order-detail-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    margin-top: 8px;
}
.order-detail-list h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}
.order-detail-product {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fbfcfd;
}
.order-detail-product img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--chip);
}
.order-detail-product strong,
.order-detail-product span {
    display: block;
}
.order-detail-product span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.info-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--chip);
    color: var(--text);
    font-size: 12px;
    line-height: 1;
}
@media(max-width:768px){

    body{
        padding:16px;
    }

    .empty-cart-wrapper{
        border-radius:24px;
        min-height:unset;
        padding:50px 20px;
    }

    .empty-icon{
        width:140px;
        height:140px;
        margin-bottom:28px;
    }

    .empty-icon svg{
        width:70px;
        height:70px;
    }

    .empty-title{
        font-size:30px;
    }

    .empty-text{
        font-size:17px;
    }

    .empty-actions{
        flex-direction:column;
    }

    .main-btn,
    .ghost-btn{
        width:100%;
    }

}

/***************/
@media(max-width: 767px) {
    .open-menu-reley {
        display: block;
    }
    #mobile_menu {
        z-index: 999999;
    }
    .sidebar{
        display: none;
    }
}
@media (max-width: 600px) {
    .not-logged-in .main {
        margin-top: 0;
        padding: 40px 25px;
        min-height: auto;
    }

    .logo {
        flex-direction: column;
        gap: 15px;
    }

    .brand {
        font-size: 36px;
    }

    .tagline {
        font-size: 16px;
    }

    h1 {
        font-size: 23px;
    }

    .subtitle {
        font-size: 17px;
    }
    .lang-switch {
        top: 15px;
        right: 15px;
    }

}

@media (max-width: 1500px) {
    body {
        min-width: 1120px;
        font-size: 14px;
    }

    .app {
        grid-template-columns: 84px minmax(0, 1fr) 330px;
    }

    .app.cart-open {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .topbar {
        grid-template-columns: 230px minmax(420px, 1fr) auto;
        gap: 12px;
        padding: 0 16px;
    }

    .global-search {
        grid-template-columns: 128px minmax(260px, 1fr) 100px;
    }

    h1 {
        font-size: 24px;
    }

    .sub {
        font-size: 13px;
    }

    .field,
    .select {
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    .textarea {
        font-size: 14px;
    }

    .btn {
        min-height: 34px;
        padding: 0 11px;
        font-size: 14px;
    }

    .top-meta {
        gap: 8px;
    }

    .top-meta .pill {
        height: 36px;
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 13px;
    }

    .round {
        width: 36px;
        height: 36px;
    }

    .sidebar {
        padding: 12px 9px;
    }

    .account {
        display: none;
    }

    .nav-title {
        margin: 13px 0 7px;
        text-align: center;
        letter-spacing: .04em;
        font-size: 10px;
    }

    .nav-item {
        min-height: 48px;
        justify-content: center;
        padding: 8px;
        position: relative;
    }

    .nav-label {
        justify-content: center;
    }

    .nav-text {
        display: none;
    }

    .nav-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .count {
        display: none;
    }

    .main {
        padding: 16px;
    }

    .cart {
        padding: 14px;
    }

    .mode-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .tab {
        height: 34px;
        padding: 0 11px;
        font-size: 13px;
    }

    .start-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-layout,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .overview-alerts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-card-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .favorite-grid {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }

    .favorite-card {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .favorite-card img {
        width: 56px;
        height: 56px;
    }

    .product {
        grid-template-columns: 84px minmax(220px, 1fr) 112px minmax(230px, .8fr);
        grid-template-areas:
          "photo info mhd price"
          "photo order order tools";
        gap: 10px;
        align-items: start;
    }

    .product .photo {
        grid-area: photo;
        width: 84px;
        height: 84px;
    }

    .product > div:nth-child(2) { grid-area: info; }
    .product .mhd-box { grid-area: mhd; }
    .product .price { grid-area: price; }

    .product .order {
        grid-area: order;
        grid-template-columns: 132px 170px minmax(180px, 1fr);
        align-items: center;
    }

    .product .tools {
        grid-area: tools;
    }

    .metric-card {
        min-height: 82px;
        padding: 12px;
    }

    .metric-card strong {
        font-size: 23px;
    }

    .metric-head {
        font-size: 12px;
    }

    .metric-head .inline-icon {
        width: 34px;
        height: 34px;
    }

    .metric-head .inline-icon svg {
        width: 19px;
        height: 19px;
    }

    .panel-head {
        min-height: 50px;
        padding: 11px 13px;
    }

    .panel-title h2 {
        font-size: 16px;
    }

    .overview-alert strong,
    .news-item strong,
    .order-feed-item strong,
    .promo-item strong {
        font-size: 15px;
    }

    .promo-card h3,
    .favorite-card h3 {
        font-size: 14px;
    }

    .promo-card p,
    .favorite-card p,
    .news-item p,
    .promo-item p,
    .order-meta {
        font-size: 12px;
    }

    .favorite-price,
    .order-sum {
        font-size: 14px;
    }

    .cart h2 {
        font-size: 22px;
    }

    .summary-row {
        font-size: 13px;
    }

    .summary-row.total {
        font-size: 18px;
    }
}

@media (max-width: 1280px) {
    body {
        min-width: 900px;
    }

    .app {
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-rows: 120px minmax(0, 1fr) auto;
    }

    .app.cart-open {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .topbar {
        grid-column: 1 / 3;
        grid-template-columns: 84px 1fr;
        grid-template-rows: 44px 44px;
        gap: 10px 14px;
        padding: 12px 14px;
    }

    .brand-name { display: none; }

    .logo {
        width: 168px;
        height: 42px;
    }

    .global-search {
        grid-column: 2;
        grid-row: 2;
        grid-template-columns: 130px minmax(0, 1fr) 96px;
    }

    .top-meta {
        grid-column: 2;
        justify-content: flex-end;
        min-width: 0;
    }

    .top-meta .pill {
        height: 34px;
        padding: 0 9px;
        font-size: 12px;
    }

    .top-meta .round {
        width: 34px;
        height: 34px;
    }

    .quick-jump {
        width: 148px;
        height: 34px;
        padding: 0 9px;
        font-size: 12px;
    }

    .sidebar {
        padding: 12px 9px;
    }

    .account { display: none; }

    .nav-title {
        margin: 13px 0 7px;
        text-align: center;
        letter-spacing: .04em;
        font-size: 10px;
    }

    .nav-item {
        min-height: 48px;
        justify-content: center;
        padding: 8px;
        position: relative;
    }

    .nav-label { justify-content: center; }
    .nav-text { display: none; }

    .nav-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .count {
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        position: absolute;
        top: 4px;
        right: 3px;
        font-size: 10px;
    }

    .main {
        min-width: 0;
        padding: 14px;
    }

    .head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .deadline {
        min-width: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .deadline strong {
        margin-top: 0;
        font-size: 18px;
    }

    .mode-tabs { display: none; }

    .category-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .category-card {
        min-height: 54px;
        padding: 8px;
    }

    .category-copy strong { font-size: 13px; }

    .toolbar-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #localSearch { grid-column: 1 / 3; }

    .drawer {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .routing-layout {
        grid-template-columns: 1fr;
    }

    .cart-page-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-page-grid {
        grid-template-columns: 1fr;
    }

    .cart-page-item {
        grid-template-columns: 64px minmax(0, 1fr) 128px;
        grid-template-areas:
          "image info qty"
          "image sum remove";
    }

    .cart-page-item img { grid-area: image; }
    .cart-page-info { grid-area: info; }
    .cart-page-item .stepper { grid-area: qty; }
    .cart-line-sum { grid-area: sum; text-align: left; }
    .cart-page-remove { grid-area: remove; justify-self: end; }

    .product {
        grid-template-columns: 84px minmax(0, 1fr) 118px 128px;
        grid-template-areas:
          "photo info mhd price"
          "photo order order order"
          "photo tools tools tools";
        gap: 10px;
        align-items: start;
    }

    .product .photo {
        grid-area: photo;
        width: 84px;
        height: 84px;
    }

    .product > div:nth-child(2) { grid-area: info; }
    .product .mhd-box { grid-area: mhd; width: fit-content;}
    .product .price { grid-area: price; }

    .product .order {
        grid-area: order;
        grid-template-columns: 132px minmax(112px, 160px) minmax(160px, 1fr);
        align-items: center;
    }

    .product .tools {
        grid-area: tools;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cart {
        grid-column: 1 / 3;
        display: grid;
        grid-template-columns: minmax(280px, .85fr) minmax(320px, 1fr);
        grid-template-rows: auto auto 1fr;
        gap: 10px 12px;
        max-height: 315px;
        overflow-y: auto;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 12px 14px;
    }

    .cart-head { margin-bottom: 0; }
    .cart > .field { grid-column: 1; }
    .cart .cart-card { margin-top: 0; }
    .cart .cart-card:first-of-type { grid-column: 1; }
    .cart .cart-card:last-of-type {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .drawer-panel {
        top: 120px;
        height: calc(100vh - 120px);
    }
}

@media (max-width: 900px) {
    .overview-promo-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-next-tier {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .overview-progress-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .overview-promo-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body {
        min-width: 0;
        height: auto;
        overflow: auto;
    }

    .app {
        min-height: 100vh;
        height: auto;
        display: block;
    }

    .topbar {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
    }

    .brand-name { display: none; }
    .global-search { grid-column: 1 / -1; grid-template-columns: 1fr; }
    .top-meta { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }
    .quick-jump { flex: 0 0 170px; }

    .sidebar {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .nav-title,
    .account { display: none; }

    .nav-item {
        width: auto;
        flex: 0 0 auto;
        min-height: 44px;
    }

    .nav-text { display: block; }
    .count { position: static; }

    .main,
    .cart { padding: 12px; }

    .head,
    .toolbar-main,
    .drawer,
    .category-strip,
    .product,
    .cart {
        display: grid;
        grid-template-columns: 1fr;
    }

    #localSearch,
    .cart .cart-card:last-of-type,
    .cart .cart-card:first-of-type {
        grid-column: 1;
        grid-row: auto;
    }

    .start-metrics,
    .dashboard-grid,
    .overview-layout,
    .overview-alerts,
    .promo-card-grid,
    .favorite-grid,
    .info-grid,
    .info-card-list,
    .routing-layout,
    .routing-metrics,
    .stat-overview,
    .start-actions,
    .cart-page-top,
    .cart-page-grid,
    .cart-page-item {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .info-row-value {
        text-align: left;
    }

    .article-card,
    .stat-insight {
        grid-template-columns: 1fr;
    }

    .article-actions,
    .article-price {
        min-width: 0;
        text-align: left;
    }

    .product {
        grid-template-areas:
          "photo"
          "info"
          "mhd"
          "price"
          "order"
          "tools";
    }

    .product .photo {
        width: 100%;
        height: 190px;
    }

    .product .order,
    .product .tools {
        grid-template-columns: 1fr;
    }

    .cart {
        max-height: none;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .drawer-panel {
        top: 0;
        width: min(430px, 100vw);
        height: 100vh;
    }
}

.product.aktion-product {
    grid-template-columns: 76px minmax(220px, 1fr) 96px 160px;
    grid-template-areas:
        "photo info mhd order"
        "price price price tools";
    gap: 9px 12px;
    padding: 10px 12px;
}


.product.aktion-product > div:nth-child(2) { grid-area: info; }

.product.aktion-product .name {
    font-size: 15px;
}

.product.aktion-product .meta,
.product.aktion-product .last-order {
    margin-top: 5px;
    font-size: 12px;
}

.product.aktion-product .tags {
    margin-top: 6px;
}

.product.aktion-product .mini {
    min-height: 21px;
    padding: 0 8px;
    font-size: 11px;
}

.product.aktion-product .mhd-box {
    grid-area: mhd;
    padding: 7px 8px;
    border-radius: 10px;
}

.product.aktion-product .mhd-head {
    gap: 5px;
    margin-bottom: 4px;
    font-size: 11px;
}

.product.aktion-product .mhd-icon {
    width: 19px;
    height: 19px;
    border-radius: 6px;
}

.product.aktion-product .mhd-box strong {
    font-size: 15px;
}

.product.aktion-product .mhd-box span {
    margin-top: 3px;
    font-size: 11px;
}

.product.aktion-product .price {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 3px 14px;
    align-items: start;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.product.aktion-product .price-title {
    grid-column: 1;
}

.product.aktion-product .price strong {
    font-size: 19px;
}

.product.aktion-product .price > span {
    grid-column: 1;
    margin-top: 0;
    font-size: 11px;
}

.product.aktion-product .order {
    grid-area: order;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px;
    min-width: 0;
}

.product.aktion-product .stepper {
    grid-column: 1 / -1;
    min-width: 0;
    height: 34px;
    grid-template-columns: 34px 1fr 34px;
    border-radius: 9px;
}

.product.aktion-product .quick {
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.product.aktion-product .quick button {
    height: 26px;
    font-size: 11px;
}

.product.aktion-product .order > .btn.primary {
    grid-column: 2;
    min-width: 0;
    min-height: 40px;
    border-radius: 9px;
    font-size: 13px;
    padding: 0 8px;
}

.product.aktion-product .order > .btn.primary .inline-icon {
    display: none;
}

.product.aktion-product .tools {
    grid-area: tools;
    align-self: end;
    gap: 5px;
}

.product.aktion-product .tools .btn {
    min-height: 31px;
    font-size: 12px;
}

.product.aktion-product .promo-ladder {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.product.aktion-product .tier-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product.aktion-product .tier-scale {
    overflow: visible;
}

.product.aktion-product .promo-ladder.compact {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px;
    grid-template-areas:
        "title hint"
        "scale hint";
    gap: 5px 10px;
}

.product.aktion-product .promo-ladder.compact .promo-ladder-title {
    grid-area: title;
    font-size: 11px;
}

.product.aktion-product .promo-ladder.compact .tier-scale {
    grid-area: scale;
    grid-template-columns: repeat(var(--tier-count), minmax(32px, 1fr));
    padding: 0;
}

.product.aktion-product .promo-ladder.compact .tier-scale::before,
.product.aktion-product .promo-ladder.compact .tier-scale::after {
    top: 22px;
    height: 2px;
}

.product.aktion-product .promo-ladder.compact .tier-node {
    gap: 4px;
    font-size: 10px;
}

.product.aktion-product .promo-ladder.compact .tier-node .tier-min,
.product.aktion-product .promo-ladder.compact .tier-node .tier-price {
    font-size: 10px;
}

.product.aktion-product .promo-ladder.compact .tier-node .tier-dot {
    width: 12px;
    height: 12px;
    border-width: 2px;
    box-shadow: 0 0 0 2px #fff;
}

.product.aktion-product .promo-ladder.compact .tier-summary {
    display: none;
}

.product.aktion-product .promo-ladder.compact .tier-summary-cell {
    gap: 2px;
    padding: 7px 9px;
    font-size: 10px;
}

.product.aktion-product .promo-ladder.compact .tier-summary-cell strong {
    font-size: 14px;
}

.product.aktion-product .promo-ladder.compact .tier-summary-cell b {
    font-size: 11px;
}

.product.aktion-product .promo-ladder.compact .tier-summary-progress {
    margin-top: 2px;
    gap: 6px;
    font-size: 10px;
}

.product.aktion-product .promo-ladder.compact .tier-summary-progress i {
    height: 5px;
}

.product.aktion-product .promo-ladder.compact .saving-hint {
    grid-area: hint;
    display: grid;
    align-content: center;
    padding: 5px 7px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.25;
}

.product.aktion-product .promo-ladder.compact .saving-hint strong {
    font-size: 11px;
}

.product.aktion-product .promo-ladder.compact .saving-hint span {
    display: none;
}

.product.aktion-product {
    grid-template-columns: 86px minmax(230px, .82fr) minmax(380px, 1.4fr) 184px;
    grid-template-areas:
        "photo info price order"
        "photo info price tools";
    min-height: 198px;
    gap: 0 16px;
    padding: 18px;
}



.product.aktion-product > div:nth-child(2) {
    align-self: center;
    padding-right: 16px;
    border-right: 1px solid var(--line);
}

.product.aktion-product .name {
    font-size: 16px;
}

.product.aktion-product .meta,
.product.aktion-product .last-order {
    font-size: 12px;
}

.product.aktion-product .mhd-box {
    display: none;
}

.product.aktion-product .price {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 8px;
    border-top: 0;
    padding: 0 18px 0 8px;
    align-self: center;
}

.product.aktion-product .price-title strong {
    font-size: 23px;
}

.product.aktion-product .price > span {
    font-size: 12px;
}

.product.aktion-product .promo-ladder.compact {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
        "title"
        "scale"
        "hint";
    gap: 9px;
}

.product.aktion-product .promo-ladder.compact .promo-ladder-title {
    font-size: 12px;
}

.product.aktion-product .promo-ladder.compact .promo-ladder-title strong {
    font-size: 12px;
}

.product.aktion-product .promo-ladder.compact .tier-scale {
    grid-template-columns: repeat(var(--tier-count), minmax(42px, 1fr));
    padding: 13px 0 0;
}

.product.aktion-product .promo-ladder.compact .tier-scale::before,
.product.aktion-product .promo-ladder.compact .tier-scale::after {
    top: 34px;
}

.product.aktion-product .promo-ladder.compact .tier-node {
    gap: 7px;
}

.product.aktion-product .promo-ladder.compact .tier-node .tier-min,
.product.aktion-product .promo-ladder.compact .tier-node .tier-price {
    font-size: 12px;
}

.product.aktion-product .promo-ladder.compact .tier-node .tier-dot {
    width: 15px;
    height: 15px;
}

.product.aktion-product .promo-ladder.compact .tier-node.active::before {
    content: "Aktuell";
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.product.aktion-product .promo-ladder.compact .saving-hint {
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 12px;
}

.product.aktion-product .promo-ladder.compact .saving-hint span {
    display: block;
    margin-top: 3px;
    color: #7a5b14;
    font-size: 12px;
}

.product.aktion-product .order {
    position: relative;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.product.aktion-product .order::before {
    content: "Gewaehlte Menge";
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
}

.product.aktion-product .stepper {
    grid-column: auto;
    height: 44px;
    grid-template-columns: 42px 1fr 42px;
    border-radius: 10px;
}

.product.aktion-product .stepper span {
    gap: 4px;
    font-size: 20px;
    font-weight: 600;
}

.product.aktion-product .stepper span::after {
    content: "Ktn.";
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
}

.product.aktion-product .quick {
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.product.aktion-product .quick button {
    height: 38px;
    font-size: 13px;
}

.product.aktion-product .order > .btn.primary {
    grid-column: auto;
    min-height: 50px;
    font-size: 14px;
}

.product.aktion-product .order > .btn.primary .inline-icon {
    display: inline-grid;
}

.product.aktion-product .tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-self: start;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.product.aktion-product .tools .btn {
    min-height: 39px;
    font-size: 13px;
}

@media (max-width: 1500px) {
    .product.aktion-product {
        grid-template-columns: 76px minmax(190px, .72fr) minmax(300px, 1.25fr) 170px;
        gap: 0 12px;
        padding: 14px;
    }

    .product.aktion-product .photo {
        width: 76px;
        height: 76px;
    }

    .product.aktion-product .price {
        padding-right: 12px;
    }

    .product.aktion-product .promo-ladder.compact .tier-scale {
        grid-template-columns: repeat(var(--tier-count), minmax(34px, 1fr));
    }

    .product.aktion-product .promo-ladder.compact .tier-node .tier-min,
    .product.aktion-product .promo-ladder.compact .tier-node .tier-price {
        font-size: 10px;
    }

    .product.aktion-product .promo-ladder.compact .saving-hint span {
        display: none;
    }

    .product.aktion-product .order,
    .product.aktion-product .tools {
        padding-left: 12px;
    }
}
@media (max-width: 1320px) {
    .product.aktion-product.expanded-card {
        grid-template-columns: 210px minmax(0, 1fr);
        grid-template-areas:
            "media main"
            "order order";
        min-height: auto;
    }

    .product.aktion-product.expanded-card .aktion-media {
        border-right: 1px solid var(--line);
        border-bottom: 0;
        padding: 12px;
    }

    .product.aktion-product.expanded-card .aktion-media .photo {
        min-height: 160px;
        height: 190px;
    }

    .product.aktion-product.expanded-card .aktion-main {
        padding: 14px;
    }

    .product.aktion-product.expanded-card .aktion-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .product.aktion-product.expanded-card .aktion-top .price {
        min-width: 0;
        justify-items: start;
    }

    .product.aktion-product.expanded-card .aktion-top .aktion-price-current {
        flex-wrap: wrap;
        gap: 6px 14px;
    }

    .product.aktion-product.expanded-card .aktion-tier-summary-expanded {
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .product.aktion-product.expanded-card .tier-card {
        flex-basis: 124px;
    }

    .product.aktion-product.expanded-card .order {
        grid-template-columns: minmax(160px, 210px) minmax(220px, 1fr) minmax(190px, 220px) minmax(150px, 180px);
        align-items: end;
        gap: 10px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .product.aktion-product.expanded-card .order h3 {
        grid-column: 1 / -1;
    }

    .product.aktion-product.expanded-card .stepper,
    .product.aktion-product.expanded-card .quick,
    .product.aktion-product.expanded-card .order > .btn.primary,
    .product.aktion-product.expanded-card .order > .btn:not(.primary) {
        grid-column: auto;
    }

    .product.aktion-product.expanded-card .quick {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 1024px) and (min-width: 861px) {
    .product.aktion-product.expanded-card {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .product.aktion-product.expanded-card .aktion-media .photo {
        height: 150px;
        min-height: 140px;
    }

    .product.aktion-product.expanded-card .order {
        grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.3fr);
    }

    .product.aktion-product.expanded-card .order > .btn.primary,
    .product.aktion-product.expanded-card .order > .btn:not(.primary) {
        min-height: 40px;
    }
}
@media (max-width: 860px) {
    .product.aktion-product.expanded-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "media"
            "main"
            "order";
    }
    .aktion-top,
    .tier-flow,
    .aktion-tier-summary-expanded {
        grid-template-columns: 1fr;
    }
    .tier-arrow {
        display: none;
    }
    .aktion-media .photo {
        min-height: 220px;
    }
    .aktion-top .price {
        min-width: 0;
    }
    .tier-toggle {
        justify-self: start;
    }
}
.info-page {
    display: grid;
    gap: 14px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.panel-head {
    min-height: 54px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}
.info-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.info-card {
    display: grid;
    gap: 12px;
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 15px;
}
.info-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}
.info-card h3 {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 500;
}
.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.info-card-value {
    color: var(--brand);
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
}
.info-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
.info-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--chip);
    color: var(--text);
    font-size: 12px;
    line-height: 1;
}
@media(max-width:768px){

    body{
        padding:16px;
    }

    .empty-cart-wrapper{
        border-radius:24px;
        min-height:unset;
        padding:50px 20px;
    }

    .empty-icon{
        width:140px;
        height:140px;
        margin-bottom:28px;
    }

    .empty-icon svg{
        width:70px;
        height:70px;
    }

    .empty-title{
        font-size:30px;
    }

    .empty-text{
        font-size:17px;
    }

    .empty-actions{
        flex-direction:column;
    }

    .main-btn,
    .ghost-btn{
        width:100%;
    }

}

/***************/
@media(max-width: 767px) {
    .open-menu-reley {
        display: block;
    }
    #mobile_menu {
        z-index: 999999;
    }
    .sidebar{
        display: none;
    }
}
@media (max-width: 600px) {
    .not-logged-in .main {
        margin-top: 0;
        padding: 40px 25px;
        min-height: auto;
    }

    .logo {
        flex-direction: column;
        gap: 15px;
    }

    .brand {
        font-size: 36px;
    }

    .tagline {
        font-size: 16px;
    }

    h1 {
        font-size: 23px;
    }

    .subtitle {
        font-size: 17px;
    }
    .lang-switch {
        top: 15px;
        right: 15px;
    }

}

/* Responsive consolidation */
html,
body {
    max-width: 100%;
}

img,
svg,
video {
    max-width: 100%;
}

.app,
.topbar,
.main,
.sidebar,
.cart,
.toolbar,
.toolbar-main,
.drawer,
.product,
.product > *,
.dashboard-panel,
.metric-card,
.cart-page,
.cart-page-grid,
.cart-page-item,
.info-page,
.info-card,
.panel-head,
.aktion-main,
.aktion-media,
.product.aktion-product.expanded-card {
    min-width: 0;
}

.action-offer-card,
.action-offer-card > * {
    min-width: 0;
}

.name,
.meta,
.sub,
.panel-title h2,
.metric-card strong,
.metric-card span,
.cart-title,
.cart-page-meta,
.info-card p,
.info-card h3,
.aktion-top .name,
.aktion-top .meta {
    overflow-wrap: anywhere;
}

.main {
    scrollbar-gutter: stable;
}

.cart:not(.open) {
    display: none;
}

.cart.open {
    display: flex;
}

@media (max-width: 1500px) {
    body {
        min-width: 0;
    }

    .app {
        grid-template-columns: 84px minmax(0, 1fr) minmax(280px, 330px);
    }

    .app.two-col,
    .app.cart-open {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .topbar {
        grid-template-columns: 84px minmax(0, 1fr) auto;
    }

    .toolbar-main {
        grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(220px, 1.4fr) auto auto auto;
    }

    .aktionen-toolbar-main {
        grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto auto;
    }

    .product {
        grid-template-columns: 84px minmax(220px, 1fr) minmax(100px, 118px) minmax(150px, .6fr);
    }
}

@media (max-width: 1280px) {
    body {
        min-width: 0;
        overflow-x: hidden;
    }

    .app,
    .app.two-col,
    .app.cart-open {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .topbar {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .global-search {
        grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) auto;
    }

    .top-meta {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .top-cart-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    #sideCart.cart {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        z-index: 1200;
        width: min(390px, 100vw);
        height: 100dvh;
        max-height: 100dvh;
        display: flex;
        transform: translateX(104%);
        transition: transform .22s ease;
        border-left: 1px solid var(--line);
        box-shadow: -18px 0 40px rgba(15, 23, 42, .18);
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: max(17px, env(safe-area-inset-bottom));
    }

    #sideCart.cart.open {
        transform: translateX(0);
    }

    #sideCart .cart-card {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
        overflow-y: auto;
    }

    #sideCart .cart-close-btn {
        display: inline-flex;
    }

    .side-cart-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1190;
        display: block;
        pointer-events: none;
        opacity: 0;
        background: rgba(15, 23, 42, .34);
        transition: opacity .22s ease;
    }

    body.side-cart-drawer-open .side-cart-backdrop {
        pointer-events: auto;
        opacity: 1;
    }

    body.side-cart-drawer-open {
        overflow: hidden;
    }

    .start-metrics,
    .cart-page-top,
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolbar-main,
    .aktionen-toolbar-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #localSearch,
    .aktionen-toolbar-main .field {
        grid-column: 1 / -1;
    }

    .toolbar-main .btn,
    .aktionen-toolbar-main .btn {
        width: 100%;
    }

    .toolbar-main .view-toggle,
    .aktionen-toolbar-main .view-toggle {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .toolbar-main .view-toggle button,
    .aktionen-toolbar-main .view-toggle button {
        width: 100%;
    }

    .drawer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product {
        grid-template-columns: 84px minmax(0, 1fr) minmax(120px, auto);
        grid-template-areas:
            "photo info price"
            "photo mhd mhd"
            "photo order order"
            "photo tools tools";
    }

    .product .price {
        justify-self: end;
        text-align: right;
    }

    .product .order {
        grid-template-columns: minmax(120px, 150px) minmax(140px, 180px) minmax(170px, 1fr);
    }

    .product .tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-page-grid,
    .overview-layout,
    .dashboard-grid,
    .info-card-list {
        grid-template-columns: 1fr;
    }

    .product.aktion-product.expanded-card {
        grid-template-columns: 210px minmax(0, 1fr);
        grid-template-areas:
            "media main"
            "order order";
        min-height: auto;
    }

    .product.aktion-product.expanded-card .aktion-media {
        border-right: 1px solid var(--line);
        border-bottom: 0;
        padding: 12px;
    }

    .product.aktion-product.expanded-card .aktion-media .photo {
        height: 190px;
        min-height: 160px;
    }

    .product.aktion-product.expanded-card .aktion-main {
        padding: 14px;
    }

    .product.aktion-product.expanded-card .aktion-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .product.aktion-product.expanded-card .aktion-top .price {
        min-width: 0;
        justify-items: start;
    }

    .product.aktion-product.expanded-card .aktion-top .aktion-price-current {
        flex-wrap: wrap;
        gap: 6px 14px;
    }

    .product.aktion-product.expanded-card .aktion-tier-summary-expanded {
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .product.aktion-product.expanded-card .tier-card {
        flex-basis: 124px;
    }

    .product.aktion-product.expanded-card .order {
        grid-template-columns: minmax(160px, 210px) minmax(220px, 1fr) minmax(190px, 220px) minmax(150px, 180px);
        align-items: end;
        gap: 10px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .product.aktion-product.expanded-card .order h3 {
        grid-column: 1 / -1;
    }

    .product.aktion-product.expanded-card .stepper,
    .product.aktion-product.expanded-card .quick,
    .product.aktion-product.expanded-card .order > .btn.primary,
    .product.aktion-product.expanded-card .order > .btn:not(.primary) {
        grid-column: auto;
    }

    .product.aktion-product.expanded-card .quick {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .product.aktion-product.expanded-card {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .product.aktion-product.expanded-card .aktion-media .photo {
        height: 150px;
        min-height: 140px;
    }

    .product.aktion-product.expanded-card .order {
        grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.3fr);
    }

    .product.aktion-product.expanded-card .order > .btn.primary,
    .product.aktion-product.expanded-card .order > .btn:not(.primary) {
        min-height: 40px;
    }

    .app,
    .app.two-col,
    .app.cart-open {
        min-height: 100dvh;
        height: auto;
        display: block;
    }

    .topbar {
        position: sticky;
        top: 0;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        align-items: center;
    }

    .global-search,
    .top-meta {
        grid-column: 1 / -1;
    }

    .top-meta {
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .top-meta .pill {
        flex: 0 0 auto;
        max-width: 230px;
    }

    .sidebar {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 8px 10px;
        scrollbar-width: thin;
    }

    .sidebar .nav-title,
    .sidebar .account {
        display: none;
    }

    .sidebar .nav-item {
        width: auto;
        flex: 0 0 auto;
        min-height: 40px;
        padding: 7px 10px;
    }

    .sidebar .nav-text,
    .sidebar .count {
        display: inline-flex;
        position: static;
    }

    .main {
        padding: 14px;
        overflow: visible;
    }

    .cart {
        border-left: 0;
        border-top: 1px solid var(--line);
        max-height: none;
    }

    .drawer-panel {
        top: 0;
        width: min(100%, 520px);
        height: 100dvh;
    }
}

@media (max-width: 900px) {
    body {
        height: auto;
        overflow: auto;
    }

    h1 {
        font-size: 24px;
    }

    .head {
        grid-template-columns: 1fr;
    }

    .mode-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-left: -12px;
        margin-right: -12px;
        padding: 0 12px 6px;
        scrollbar-width: thin;
    }

    .tab {
        flex: 0 0 auto;
    }

    .global-search,
    .toolbar-main,
    .aktionen-toolbar-main,
    .drawer,
    .mde-grid,
    .start-metrics,
    .cart-page-top,
    .info-grid,
    .start-actions {
        grid-template-columns: 1fr;
    }

    #localSearch,
    .aktionen-toolbar-main .field {
        grid-column: auto;
    }

    .panel-head,
    .info-card-head,
    .news-top,
    .order-top,
    .promo-top {
        align-items: stretch;
        flex-direction: column;
    }

    .panel-head .btn,
    .panel-head button {
        width: 100%;
    }

    .product {
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-areas:
            "photo info"
            "photo mhd"
            "price price"
            "order order"
            "tools tools";
    }

    .product .photo {
        width: 96px;
        height: 96px;
    }

    .product .price {
        justify-self: stretch;
        text-align: left;
        border-top: 1px solid var(--line);
        padding-top: 10px;
    }

    .product .order,
    .product .tools {
        grid-template-columns: 1fr;
    }

    .quick {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cart-page-item {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "image info"
            "image qty"
            "sum sum"
            "remove remove";
    }

    .cart-page-remove {
        width: 100%;
        border-radius: 10px;
    }

    .aktion-media {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .aktion-media .photo {
        min-height: 0;
        height: clamp(210px, 54vw, 300px);
        max-height: 300px;
    }

    .aktion-top {
        display: block;
    }

    .aktion-top .price {
        min-width: 0;
        justify-items: start;
    }

    .aktion-top .aktion-price-current {
        flex-wrap: wrap;
        gap: 6px 14px;
    }

    .product.aktion-product.expanded-card .order {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .product.aktion-product.expanded-card {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "main"
            "order";
        width: 100%;
        min-height: auto;
        border-radius: 14px;
    }

    .aktion-media {
        grid-area: media;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .aktion-main {
        grid-area: main;
        display: block;
        width: 100%;
        min-width: 0;
        padding: 14px;
    }

    .product.aktion-product.expanded-card .order {
        grid-area: order;
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--line);
    }
    .aktion-media .photo {
        width: auto !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }

    .aktion-media .photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0;
    }

    .topbar {
        gap: 8px;
        padding: 10px;
    }

    .brand {
        gap: 8px;
    }

    .sublogo img {
        max-width: 145px;
        height: auto;
    }

    .open-menu-reley {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main {
        padding: 10px;
    }

    .toolbar,
    .panel,
    .metric-card,
    .dashboard-panel,
    .product,
    .cart-page-item,
    .info-card {
        border-radius: 10px;
    }

    .field,
    .select,
    .textarea,
    .btn {
        min-height: 42px;
    }

    .product {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .product .photo {
        width: 82px;
        height: 82px;
    }

    .name,
    .aktion-top .name {
        font-size: 16px;
    }

    .price strong,
    .aktion-top .stuck_price {
        font-size: 19px;
    }

    .quick,
    .product.aktion-product.expanded-card .quick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product.aktion-product.expanded-card .quick button {
        min-height: 34px;
    }

    .tier-card {
        flex-basis: 128px;
    }

    .price-table {
        overflow-x: auto;
    }

    .price-table table {
        min-width: 430px;
    }

    .pagination {
        justify-content: center;
    }

    .pagination button {
        min-width: 36px;
        height: 36px;
    }

    .company-popup {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .product {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "info"
            "mhd"
            "price"
            "order"
            "tools";
    }

    .product .photo {
        width: 100%;
        height: 180px;
    }

    .aktion-media .photo {
        height: 220px;
    }

    .metric-card strong {
        font-size: 22px;
    }
}

@media (min-width: 901px) {
    .products.product-block-list {
        grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
        align-items: start;
    }

    .products.product-block-list .product:not(.aktion-product):not(.action-offer-card) {
        grid-template-columns: 92px minmax(0, 1fr) minmax(116px, auto) minmax(132px, auto);
        grid-template-areas:
            "photo info mhd price"
            "order order tools tools";
        gap: 12px 14px;
        align-items: center;
    }

    .products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .photo {
        width: 92px;
        height: 92px;
    }

    .products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .price {
        justify-self: end;
        text-align: right;
    }

    .products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .order {
        grid-template-columns: minmax(124px, 150px) minmax(130px, 170px) auto 40px;
    }

    .products.product-block-list .product:not(.aktion-product):not(.action-offer-card) .tools {
        grid-template-columns: repeat(2, 36px);
        justify-self: end;
    }
}

@media (max-width: 900px) {
    .history-layout {
        grid-template-columns: 1fr;
    }

    .stat-panel {
        overflow-x: auto;
    }

    .history-table {
        min-width: 860px;
    }

    .history-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .history-toolbar .field,
    .history-toolbar .btn {
        grid-column: 1 / -1;
    }

    .products.product-block-list {
        grid-template-columns: 1fr;
    }
}

.action-offer-list .action-offer-card {
    grid-template-columns: minmax(0, 1fr) 210px !important;
    grid-template-rows: minmax(214px, auto) auto auto !important;
    grid-template-areas:
        "main staffel"
        "savings savings"
        "controls controls" !important;
}

.action-offer-list .action-offer-main {
    grid-area: main !important;
    min-height: 214px !important;
    align-items: start !important;
}

.action-offer-list .action-offer-info {
    min-height: 214px !important;
    height: auto !important;
    grid-template-rows: none !important;
    grid-auto-rows: max-content !important;
    align-content: start !important;
    gap: 7px !important;
}

.action-offer-list .action-offer-name,
.action-offer-list .action-offer-meta {
    height: auto !important;
}

.action-offer-list .action-offer-staffel {
    grid-area: staffel !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
}

.action-offer-list .action-offer-savings {
    grid-area: savings !important;
}

.action-offer-list .action-offer-controls {
    grid-area: controls !important;
}

@media (max-width: 560px) {
    .action-offer-list .action-offer-card {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto !important;
        grid-template-areas:
            "main"
            "staffel"
            "savings"
            "controls" !important;
    }
}

@media (max-width: 767px) {
    body {
        min-width: 0 !important;
        overflow-x: hidden;
    }

    body > .mobile-app-notice {
        min-height: 100vh;
        padding: 28px 16px;
        display: grid !important;
        place-items: center;
        align-content: center;
        gap: 22px;
    }

    body > .app,
    body.not-logged-in > .main {
        display: none !important;
    }
}
