/*
 * Cart page (checkout/cart) in the STAS look (owner, 4 November 2026), as the checkout: the grey field, cards
 * (white fading to #fafafa, a thin #e5e5e5 edge, 24px corners, a soft shadow), the theme's fields and pill buttons.
 * Desktop (1024px and wider): the items on the left, the summary as a sticky card on the right. Below 1024px one
 * column, at most 640px wide: the items, the Guthabencode, the summary. Loaded by
 * Magento_Checkout/layout/checkout_cart_index.xml. Luma's styles-l.css loads after the theme, so every rule starts
 * at body.checkout-cart-index .page-main to outrank it. Docs: docs/cart.html#cart-page
 */

/* ---------- Page ---------- */
body.checkout-cart-index .page-main {
    box-sizing: border-box;
    max-width: none;
    padding-bottom: 56px;
    background: #f2f2f2;
}

body.checkout-cart-index .page-main .page-title-wrapper,
body.checkout-cart-index .page-main .columns {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

body.checkout-cart-index .page-main .page-title-wrapper {
    padding: 40px 0 24px;
}

/* The title in Barlow with the orange rule under it, as on the sign-in pages */
body.checkout-cart-index .page-main .page-title-wrapper .page-title {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    color: #1f2328;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(3.2rem, 3.4vw, 4.8rem);
    font-weight: 600;
    line-height: 1.1;
}

body.checkout-cart-index .page-main .page-title-wrapper .page-title::after {
    content: '';
    display: block;
    width: 88px;
    height: 4px;
    background: #f26a21;
}

body.checkout-cart-index .page-main .columns .column.main {
    padding-bottom: 0;
}

/* The cards' look, shared */
body.checkout-cart-index .page-main #shopping-cart-table tbody.cart.item,
body.checkout-cart-index .page-main .cart-summary,
body.checkout-cart-index .page-main .cart-discount .block.discount,
body.checkout-cart-index .page-main .cart-empty {
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #fafafa 100%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* ---------- Layout: Desktop two columns, below 1024px one ---------- */
body.checkout-cart-index .page-main .cart-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
        "form summary"
        "discount summary"
        "rest rest";
    align-items: start;
    gap: 16px 32px;
}

body.checkout-cart-index .page-main .cart-container::before,
body.checkout-cart-index .page-main .cart-container::after {
    display: none; /* Luma's clearfix would take grid cells */
}

body.checkout-cart-index .page-main .cart-container > .form-cart {
    grid-area: form;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

body.checkout-cart-index .page-main .cart-container > .cart-discount {
    grid-area: discount;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

body.checkout-cart-index .page-main .cart-container > .cart-summary {
    grid-area: summary;
}

body.checkout-cart-index .page-main .cart-container > :not(.form-cart, .cart-discount, .cart-summary) {
    grid-area: rest;
}

/* ---------- Items: one card per line ---------- */
body.checkout-cart-index .page-main .cart.table-wrapper {
    overflow: visible;
    margin: 0;
    border: 0;
}

body.checkout-cart-index .page-main #shopping-cart-table {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
}

body.checkout-cart-index .page-main #shopping-cart-table :is(caption, thead) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* [picture] name, options, SKU            [edit][remove]
             Anzahl     Preis       Zwischensumme */
body.checkout-cart-index .page-main #shopping-cart-table tbody.cart.item {
    position: relative;
    display: grid;
    grid-template-columns: 96px repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "photo details details details"
        "photo qty price subtotal"; /* Anzahl first, as on Desktop (owner, 4 November 2026) */
    gap: 16px 20px;
    margin: 0 0 16px;
    padding: 24px;
}

body.checkout-cart-index .page-main #shopping-cart-table tbody.cart.item :is(tr.item-info, tr.item-actions, td.col.item) {
    display: contents;
}

body.checkout-cart-index .page-main #shopping-cart-table tbody.cart.item td {
    display: block;
    padding: 0;
    border: 0;
}

body.checkout-cart-index .page-main #shopping-cart-table .product-item-photo {
    grid-area: photo;
    display: block;
    box-sizing: border-box;
    width: 96px;
    height: 96px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
}

body.checkout-cart-index .page-main #shopping-cart-table .product-item-photo .product-image-container {
    width: 100% !important; /* Magento sizes it inline (165px) */
    height: 100%;
}

body.checkout-cart-index .page-main #shopping-cart-table .product-item-photo .product-image-wrapper {
    height: 100%;
    padding-bottom: 0;
}

body.checkout-cart-index .page-main #shopping-cart-table .product-item-photo .product-image-photo {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.checkout-cart-index .page-main #shopping-cart-table .product-item-details {
    grid-area: details;
    display: block;
    min-width: 0;
    padding: 4px 88px 0 0; /* room for the two round buttons */
}

body.checkout-cart-index .page-main #shopping-cart-table .product-item-name {
    display: block;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.35;
}

body.checkout-cart-index .page-main #shopping-cart-table .product-item-name a {
    color: #1f2328;
}

body.checkout-cart-index .page-main #shopping-cart-table .sr-cart-sku {
    margin: 8px 0 0;
}

/* The quantity as plain text, not a field, on every width (owner, 4 November 2026: first Desktop, then Mobile too):
   js/satrunner-cart-page.js puts the value beside Magento's field, which stays in the form, hidden. With nothing to
   change, "Warenkorb aktualisieren" goes too. */
body.checkout-cart-index .page-main .cart-container #shopping-cart-table td.col.qty input.qty {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
}

body.checkout-cart-index .page-main .cart-container #shopping-cart-table td.col.qty .sr-qty-value {
    display: block;
    color: #1f2328;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 2.2rem;
}

body.checkout-cart-index .page-main .cart-container .cart.main.actions .action.update {
    display: none;
}

/* Desktop (owner, 4 November 2026): Anzahl under the picture, Preis and Zwischensumme beside it
   [picture]  name, options, SKU
   Anzahl     Preis        Zwischensumme */
@media (min-width: 1024px) {
    body.checkout-cart-index .page-main #shopping-cart-table tbody.cart.item {
        grid-template-columns: 96px repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "photo details details"
            "qty price subtotal";
    }
}


/* Preis, Anzahl, Zwischensumme: a small grey label over each value */
body.checkout-cart-index .page-main #shopping-cart-table td.col.price { grid-area: price; }
body.checkout-cart-index .page-main #shopping-cart-table td.col.qty { grid-area: qty; }
body.checkout-cart-index .page-main #shopping-cart-table td.col.subtotal { grid-area: subtotal; text-align: right; }

body.checkout-cart-index .page-main #shopping-cart-table td:is(.col.price, .col.qty, .col.subtotal) {
    align-self: stretch;
    padding-top: 16px;
    border-top: 1px solid #ececec;
    text-align: left;
}

body.checkout-cart-index .page-main #shopping-cart-table td.col.subtotal {
    text-align: right;
}

body.checkout-cart-index .page-main #shopping-cart-table td:is(.col.price, .col.qty, .col.subtotal)::before {
    content: attr(data-th);
    display: block;
    margin: 0 0 4px;
    padding: 0;
    color: #6e6e73;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}

body.checkout-cart-index .page-main #shopping-cart-table td :is(.price-including-tax, .price-excluding-tax) .price,
body.checkout-cart-index .page-main #shopping-cart-table td .cart-price .price {
    color: #1f2328;
    font-size: 1.6rem;
    font-weight: 600;
}

body.checkout-cart-index .page-main #shopping-cart-table td.col.subtotal .price {
    font-weight: 700;
}

body.checkout-cart-index .page-main #shopping-cart-table td.col.qty .field.qty,
body.checkout-cart-index .page-main #shopping-cart-table td.col.qty .control.qty {
    margin: 0;
}

body.checkout-cart-index .page-main #shopping-cart-table td.col.qty .control.qty .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

body.checkout-cart-index .page-main #shopping-cart-table td.col.qty input.qty {
    box-sizing: border-box;
    width: 72px;
    height: 44px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2328;
    font-size: 1.6rem;
    text-align: center;
}

body.checkout-cart-index .page-main #shopping-cart-table td.col.qty input.qty:focus {
    border-color: #1f2328;
    outline: none;
    box-shadow: 0 0 0 1px #1f2328;
}

/* Bearbeiten / Artikel entfernen: the theme's round buttons (as the modal's close), top right */
body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions td {
    position: absolute;
    top: 24px;
    right: 24px;
}

body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action {
    position: static; /* Luma lays them over each other (absolute) */
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action::before {
    content: '';
    width: 16px;
    height: 16px;
    margin: 0;
    background-color: currentColor;
    color: inherit; /* Luma gives the remove icon a colour of its own (#757575, #333 on hover); the button's counts */
    font-size: 0;
}

body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action-edit::before {
    -webkit-mask: url('../images/icons/cd/edit.svg') center / contain no-repeat;
    mask: url('../images/icons/cd/edit.svg') center / contain no-repeat;
}

body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action-delete::before {
    -webkit-mask: url('../images/icons/trash.svg') center / contain no-repeat;
    mask: url('../images/icons/trash.svg') center / contain no-repeat;
}

/* "+" on device and plan lines: another device or plan (web/js/satrunner-cart-page.js) */
body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action-add {
    cursor: pointer;
    box-shadow: none;
    font: inherit;
}

body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action-add::before {
    width: 20px;
    height: 20px;
    -webkit-mask: url('../images/icons/add.svg') center / contain no-repeat;
    mask: url('../images/icons/add.svg') center / contain no-repeat;
}

body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action:is(:hover, :focus-visible) {
    border-color: #f26a21;
    background: #f26a21;
    color: #ffffff;
}

/* Remove: red on hover (owner, 4 November 2026), the theme's error red */
body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action-delete:is(:hover, :focus-visible) {
    border-color: #e02b27;
    background: #e02b27;
    color: #ffffff;
}

body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action:focus-visible {
    outline: 2px solid #f26a21;
    outline-offset: 2px;
}

body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions .actions-toolbar > .action > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Under the items: "Mit dem Einkaufen fortfahren" as a link with an arrow on the left, "Warenkorb aktualisieren"
   as the white pill on the right */
body.checkout-cart-index .page-main .cart.main.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 8px 0 0;
    text-align: left;
}

body.checkout-cart-index .page-main .cart.main.actions .action.continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #1f2328;
    font-size: 1.6rem;
    font-weight: 500;
    text-decoration: none;
}

body.checkout-cart-index .page-main .cart.main.actions .action.continue::before {
    content: '\2190';
    margin: 0;
    font-family: inherit;
    font-size: 1.6rem;
}

body.checkout-cart-index .page-main .cart.main.actions .action.continue:is(:hover, :focus) {
    color: #f26a21;
}

body.checkout-cart-index .page-main :is(.cart.main.actions .action.update, .cart-discount .action.apply) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid rgba(13, 13, 13, 0.08);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    color: #1f2328;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

body.checkout-cart-index .page-main :is(.cart.main.actions .action.update, .cart-discount .action.apply):is(:hover, :focus) {
    border-color: rgba(13, 13, 13, 0.24);
    background: #ffffff;
    color: #1f2328;
}

body.checkout-cart-index .page-main :is(.cart.main.actions .action.update, .cart-discount .action.apply)::before {
    display: none; /* Luma's icon */
}

/* ---------- Collapsible titles (Guthabencode, Geschätzte Steuern und Versandgebühren): a row with a chevron ---------- */
body.checkout-cart-index .page-main :is(.cart-discount .block.discount, .cart-summary .block.shipping) > .title {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 32px 0 0;
    border: 0;
    cursor: pointer;
}

body.checkout-cart-index .page-main :is(.cart-discount .block.discount, .cart-summary .block.shipping) > .title strong {
    display: block;
    margin: 0;
    color: #1f2328;
    font-family: 'Barlow', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

body.checkout-cart-index .page-main :is(.cart-discount .block.discount, .cart-summary .block.shipping) > .title::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 4px;
    width: 8px;
    height: 8px;
    margin: -8px 0 0;
    border-right: 2px solid #1f2328;
    border-bottom: 2px solid #1f2328;
    font-size: 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}

body.checkout-cart-index .page-main :is(.cart-discount .block.discount, .cart-summary .block.shipping).active > .title::after {
    margin-top: -2px;
    transform: rotate(225deg);
}

/* ---------- Guthabencode: a card, the field and "Einlösen" side by side ---------- */
body.checkout-cart-index .page-main .cart-discount .block.discount {
    width: 100%;
    margin: 0;
    padding: 20px 24px;
}

body.checkout-cart-index .page-main .cart-discount .block.discount > .content {
    padding: 16px 0 0;
}

body.checkout-cart-index .page-main .cart-discount .fieldset.coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 0;
}

body.checkout-cart-index .page-main .cart-discount .fieldset.coupon > .field,
body.checkout-cart-index .page-main .cart-discount .fieldset.coupon > .actions-toolbar {
    margin: 0;
}

body.checkout-cart-index .page-main .cart-discount .fieldset.coupon > .field > .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

body.checkout-cart-index .page-main .cart-discount .actions-toolbar > .primary {
    margin: 0;
}

body.checkout-cart-index .page-main .cart-discount .action.apply {
    min-height: 56px;
}

/* ---------- Fields in the cards: the checkout's look ---------- */
body.checkout-cart-index .page-main :is(.cart-discount, .cart-summary) :is(input.input-text, select.select) {
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: none;
    color: #1f2328;
    font-size: 1.6rem;
}

body.checkout-cart-index .page-main :is(.cart-discount, .cart-summary) :is(input.input-text, select.select):focus {
    border-color: #1f2328;
    outline: none;
    box-shadow: 0 0 0 1px #1f2328;
}

/* ---------- Summary: a card, sticky on Desktop ---------- */
body.checkout-cart-index .page-main .cart-summary {
    position: sticky;
    top: 24px !important; /* Luma's sticky script sets top inline */
    float: none;
    width: auto;
    margin: 0;
    padding: 24px;
}

body.checkout-cart-index .page-main .cart-summary > .summary.title {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    color: #1f2328;
    font-family: 'Barlow', sans-serif;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.2;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping {
    margin: 0 0 8px;
    padding: 16px 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping > .title strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping > .content {
    padding: 12px 0 0;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping .fieldset {
    margin: 0;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping .fieldset > .legend,
body.checkout-cart-index .page-main .cart-summary .block.shipping .fieldset > br {
    display: none;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping .field {
    margin: 0 0 12px;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping .field > .label {
    display: block;
    margin: 0 0 4px;
    color: #6e6e73;
    font-size: 1.2rem;
    font-weight: 500;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping .field.note {
    margin: 0 0 12px;
    color: #6e6e73;
    font-size: 1.2rem;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping .methods .item-title {
    margin: 4px 0 4px;
    color: #1f2328;
    font-size: 1.2rem;
    font-weight: 600;
}

body.checkout-cart-index .page-main .cart-summary .block.shipping .methods .item-options .field.choice {
    font-size: 1.6rem;
}

/* Totals: Zwischensumme, Versand, inkl. MwSt., then Gesamtsumme large and orange, as in the checkout */
body.checkout-cart-index .page-main .cart-summary .cart-totals {
    padding: 0;
    border: 0;
}

body.checkout-cart-index .page-main .cart-summary .cart-totals .table-wrapper {
    margin: 0;
}

body.checkout-cart-index .page-main .cart-summary .cart-totals table.totals {
    width: 100%;
    margin: 0;
}

body.checkout-cart-index .page-main .cart-summary .cart-totals table.totals :is(th, td) {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #333333;
    font-size: 1.6rem;
    font-weight: 400;
}

body.checkout-cart-index .page-main .cart-summary .cart-totals table.totals .grand :is(th, td) {
    padding-top: 16px;
    border-top: 0;
    color: #f26a21;
    font-family: 'Barlow', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
}

body.checkout-cart-index .page-main .cart-summary .cart-totals table.totals .grand :is(strong, .price) {
    color: inherit;
    font-weight: 700;
}

/* Luma's line above Gesamtsumme */
body.checkout-cart-index .page-main .cart-summary .cart-totals table.totals .totals-tax-summary :is(th, td),
body.checkout-cart-index .page-main .cart-summary .cart-totals table.totals tr.totals-tax :is(th, td) {
    border: 0;
}

/* "Zur Kasse gehen": theme.primary, the orange pill over the full width */
body.checkout-cart-index .page-main .cart-summary .checkout-methods-items {
    margin: 20px 0 0;
    padding: 0;
}

body.checkout-cart-index .page-main .cart-summary .checkout-methods-items > .item {
    margin: 0 0 12px;
}

body.checkout-cart-index .page-main .cart-summary .checkout-methods-items .action.primary.checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid #f26a21;
    border-radius: 999px;
    background: #f26a21;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.checkout-cart-index .page-main .cart-summary .checkout-methods-items .action.primary.checkout:is(:hover, :focus) {
    border-color: #d95b17;
    background: #d95b17;
    color: #ffffff;
}

body.checkout-cart-index .page-main .cart-summary .checkout-methods-items .action.primary.checkout:focus-visible {
    outline: 3px solid rgba(242, 106, 33, 0.4);
    outline-offset: 2px;
}

/* "Express Checkout" between "Zur Kasse gehen" and Stripe's Google Pay / Apple Pay (owner, 4 November 2026): a thin
   line on either side of the label; js/satrunner-cart-page.js adds it and hides it while Stripe shows no button */
body.checkout-cart-index .page-main .cart-summary .sr-express-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
    color: #6e6e73;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

body.checkout-cart-index .page-main .cart-summary .sr-express-divider::before,
body.checkout-cart-index .page-main .cart-summary .sr-express-divider::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: #e5e5e5;
}

body.checkout-cart-index .page-main .cart-summary .sr-express-divider[hidden] {
    display: none;
}

/* "Checkout mit mehreren Adressen": theme.secondary, the dark grey pill under "Zur Kasse gehen", same size, its
   text smaller and lighter (owner, 4 November 2026); the global link hover (orange, underline) does not apply */
body.checkout-cart-index .page-main .cart-summary .checkout-methods-items .action.multicheckout,
body.checkout-cart-index .page-main .cart-summary .checkout-methods-items .action.multicheckout:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid #3b3a38;
    border-radius: 999px;
    background: #3b3a38;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem; /* smaller and lighter than "Zur Kasse gehen" (owner, 4 November 2026) */
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.checkout-cart-index .page-main .cart-summary .checkout-methods-items .action.multicheckout:is(:hover, :focus) {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
}

body.checkout-cart-index .page-main .cart-summary .checkout-methods-items .action.multicheckout:focus-visible {
    outline: 3px solid rgba(59, 58, 56, 0.4);
    outline-offset: 2px;
}

body.checkout-cart-index .page-main .cart-summary .checkout-methods-items .action.multicheckout > span {
    background: none;
    color: inherit;
    text-decoration: none;
}

/* ---------- Empty cart: one card ---------- */
body.checkout-cart-index .page-main .cart-empty {
    max-width: 640px;
    padding: 32px;
    color: #333333;
    font-size: 1.6rem;
}

body.checkout-cart-index .page-main .cart-empty p {
    margin: 0 0 8px;
}

body.checkout-cart-index .page-main .cart-empty p:last-child {
    margin: 0;
}

/* ---------- Tablet and Mobile (below 1024px): one column, at most 640px, on the grey field up to the top ---------- */
@media (max-width: 1023px) {
    body.checkout-cart-index .page-wrapper {
        background: #f2f2f2;
    }

    body.checkout-cart-index .page-main {
        padding-right: 32px;
        padding-left: 32px;
    }

    body.checkout-cart-index .page-main .page-title-wrapper,
    body.checkout-cart-index .page-main .columns {
        max-width: 640px;
    }

    body.checkout-cart-index .page-main .page-title-wrapper {
        padding: 24px 0 20px;
    }

    body.checkout-cart-index .page-main .cart-container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "form"
            "discount"
            "summary"
            "rest";
    }

    body.checkout-cart-index .page-main .cart-summary {
        position: static;
    }
}

/* Luma's phone layout (below 768px) places the picture absolutely, narrows the columns to a third each and pads the
   details for the picture; the grid above does all of that */
@media (max-width: 767px) {
    body.checkout-cart-index .page-main #shopping-cart-table .product-item-photo {
        position: static;
        top: auto;
        left: auto;
        max-width: none;
    }

    body.checkout-cart-index .page-main #shopping-cart-table tbody.cart.item td {
        float: none;
        width: auto;
        min-height: 0;
    }

    body.checkout-cart-index .page-main #shopping-cart-table .product-item-details {
        padding-left: 0;
    }
}

/* ---------- Mobile (448px and narrower) ---------- */
@media (max-width: 448px) {
    body.checkout-cart-index .page-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    /* [picture] name, options, SKU   [edit][remove]
       Anzahl         Preis    Zwischensumme */
    /* Six tracks: the picture and the details in the first row; Preis, Anzahl and Zwischensumme share the full
       width in the second */
    body.checkout-cart-index .page-main #shopping-cart-table tbody.cart.item {
        grid-template-columns: 64px repeat(5, minmax(0, 1fr));
        grid-template-areas:
            "photo details details details details details"
            "qty qty price price subtotal subtotal";
        gap: 12px 8px;
        padding: 16px;
    }

    body.checkout-cart-index .page-main #shopping-cart-table td:is(.col.price, .col.qty, .col.subtotal)::before {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    body.checkout-cart-index .page-main #shopping-cart-table .product-item-photo {
        width: 64px;
        height: 64px;
        padding: 4px;
        border-radius: 8px;
    }

    body.checkout-cart-index .page-main #shopping-cart-table .product-item-details {
        padding: 0;
    }

    /* The name keeps clear of the two buttons; the options under it may run the full width */
    body.checkout-cart-index .page-main #shopping-cart-table .product-item-name {
        padding-right: 92px;
        font-size: 1.6rem;
    }

    body.checkout-cart-index .page-main #shopping-cart-table tr.item-actions td {
        top: 16px;
        right: 16px;
    }

    body.checkout-cart-index .page-main #shopping-cart-table td :is(.price-including-tax, .price-excluding-tax) .price,
    body.checkout-cart-index .page-main #shopping-cart-table td .cart-price .price {
        font-size: 1.6rem;
    }

    body.checkout-cart-index .page-main #shopping-cart-table td.col.qty input.qty {
        width: 60px;
    }

    body.checkout-cart-index .page-main .cart-discount .fieldset.coupon {
        grid-template-columns: minmax(0, 1fr);
    }

    body.checkout-cart-index .page-main .cart-discount .action.apply {
        width: 100%;
    }

    body.checkout-cart-index .page-main .cart.main.actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    body.checkout-cart-index .page-main .cart.main.actions .action.update {
        width: 100%;
    }

    body.checkout-cart-index .page-main .cart.main.actions .action.continue {
        justify-content: center;
    }

    body.checkout-cart-index .page-main .cart-summary {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.checkout-cart-index .page-main :is(.cart-discount .block.discount, .cart-summary .block.shipping) > .title::after {
        transition: none;
    }
}

/* ---------- "+" wizard in the theme modal (#sr-cart-add, built by web/js/satrunner-cart-page.js) ---------- */
.sr-modal-dialog .sr-cart-add .sr-cart-add__question {
    margin: 0 0 8px;
    color: #1f2328;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.35;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__note {
    margin: 0;
    color: #555555;
    font-size: 1.6rem;
    line-height: 1.5;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

/* Pills as in the other theme modals: theme.primary (Ja, In den Warenkorb), theme.secondary (Nein) */
.sr-modal-dialog .sr-cart-add .sr-cart-add__button,
.sr-modal-dialog .sr-cart-add a.sr-cart-add__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 120px;
    min-height: 48px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid #f26a21;
    border-radius: 24px;
    background: #f26a21;
    box-shadow: none;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__button:hover {
    border-color: #d95b17;
    background: #d95b17;
    color: #ffffff;
    text-decoration: none;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__button--secondary {
    border-color: #3b3a38;
    background: #3b3a38;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__button--secondary:hover {
    border-color: #000000;
    background: #000000;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__button:disabled {
    opacity: 0.6;
    cursor: default;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__button:focus-visible,
.sr-modal-dialog .sr-cart-add .sr-cart-add__back:focus-visible,
.sr-modal-dialog .sr-cart-add .sr-cart-add__step:focus-visible {
    outline: 3px solid rgba(242, 106, 33, 0.4);
    outline-offset: 4px;
}

/* −[1]+ as in the SIM configurator, with the orange of the cart */
.sr-modal-dialog .sr-cart-add .sr-cart-add__stepper {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 48px;
    border: 1px solid #86868b;
    border-radius: 12px;
    background: #ffffff;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__step {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: #1f2328;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__step::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url('../images/icons/minus.svg') center / contain no-repeat;
    mask: url('../images/icons/minus.svg') center / contain no-repeat;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__step--plus::before {
    -webkit-mask-image: url('../images/icons/add.svg');
    mask-image: url('../images/icons/add.svg');
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__step:hover {
    color: #f26a21;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__step:disabled {
    color: #d0d0d0;
    cursor: default;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__count {
    min-width: 40px;
    color: #1f2328;
    font-family: 'Barlow', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__back {
    display: inline-block;
    margin: 20px 0 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #555555;
    font-size: 1.6rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__back:hover {
    color: #f26a21;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__error {
    margin: 16px 0 0;
    color: #b3261e;
    font-size: 1.6rem;
}

@media (max-width: 448px) {
    .sr-modal-dialog .sr-cart-add .sr-cart-add__actions > .sr-cart-add__button {
        flex: 1 1 100%;
    }
}

/* Device "Nein": the configurator's steps in the wizard; each choice a white card as the configurator's options,
   orange on hover; the summary as the configurator's lines with the total in orange */
.sr-modal-dialog .sr-cart-add .sr-cart-add__options,
.sr-modal-dialog .sr-cart-add .sr-cart-add__lines {
    flex: 1 1 100%;
    margin: 0;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__options {
    display: grid;
    gap: 8px;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__section {
    margin: 8px 0 0;
    color: #555555;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__section:first-child {
    margin-top: 0;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    color: #1f2328;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__option:hover {
    border-color: #f26a21;
    box-shadow: 0 0 0 1px #f26a21;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__option:focus-visible {
    outline: 3px solid rgba(242, 106, 33, 0.4);
    outline-offset: 2px;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__option-text {
    display: grid;
    gap: 2px;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__option-label {
    font-size: 1.6rem;
    font-weight: 600;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__option-description {
    color: #555555;
    font-size: 1.2rem;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__option-description:empty {
    display: none;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__option-price {
    flex: 0 0 auto;
    color: #1f2328;
    font-size: 1.6rem;
    font-weight: 600;
    white-space: nowrap;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__lines {
    display: grid;
    gap: 8px;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #1f2328;
    font-size: 1.6rem;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__line dt {
    font-weight: 400;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__line dd {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__line--total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    font-size: 1.6rem;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__line--total dt {
    font-weight: 600;
}

.sr-modal-dialog .sr-cart-add .sr-cart-add__line--total dd {
    color: #f26a21;
    font-family: 'Barlow', sans-serif;
    font-size: 2rem;
}
