
html.koszyk tbody.basket-area-items-list-data tr td a.item-title {
    color: #B2965C !important;
}

html.koszyk img.item-image {

}

div.quantity-change button {
    font-family: var(--inter) !important;
    border: none !important;
    /*background: linear-gradient(to bottom, #15221A 20%, #0E1510 50%, #15221A 80%)!important;*/
    color: #B2965C !important;
    height: 30px !important;
    width: 30px !important;
}

div.quantity-change input {
    border: none !important;
    color: #FFF !important;
}

html.koszyk div.form-group input.input-discount-code {

}

html.koszyk div.form-group input[type='text'].input-discount-code:focus {
    border: 1px solid #146152;
}

html.koszyk div.form-group button.btn-discount-code {
    /*background: linear-gradient(to bottom, #15221A 20%, #0E1510 50%, #15221A 80%)!important;*/
    background: #2A1B16 !important;
    border: 1px solid #B2965C !important;
    border-left: none !important;
    color: #B2965C !important;
    font-weight: 700 !important;
    transition: color .3s ease, background .3s ease;
}

html.koszyk div.form-group button.btn-discount-code:hover {
    background: #B2965C !important;
    color: #FFF !important;
}

html.koszyk div.basket-area-summary p.basket-area-summary-price span {
    font-family: var(--inter) !important;
    color: #B2965C !important;
}

html.koszyk form#submitBasket button.btn-checkout {
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, .35) 0%,
            rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(
            25deg,
            #9F7A27 0%,
            #C9A24D 55%,
            #EED48A 100%
    ) !important;
    color: #146152 !important;
    font-weight: 700 !important;
}

html.koszyk form#submitBasket button.btn-checkout:hover {
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, .35) 0%,
            rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(
            -25deg,
            #9F7A27 0%,
            #C9A24D 55%,
            #EED48A 100%
    ) !important;
}

html.koszyk form#submitBasket button.btn-shopping-continue {
    /*background: linear-gradient(to bottom, #15221A 20%, #0E1510 50%, #15221A 80%)!important;*/
    background: transparent !important;
    padding: 0 0 5px 0 !important;
    color: #FFF !important;
    border-bottom: 1px solid #B2965C !important;
    transition: color .3s ease;
}

html.koszyk form#submitBasket button.btn-shopping-continue:hover {
    color: #B2965C !important;
}

html.koszyk div.basket-area-empty p a {
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, .35) 0%,
            rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(
            25deg,
            #9F7A27 0%,
            #C9A24D 55%,
            #EED48A 100%
    ) !important;
    color: #146152 !important;
    font-weight: 700 !important;
}


/* === KOSZYK ===
   Tylko strona /Basket, wszystko pod html.koszyk #basket-grid.
   !important tam, gdzie Root334 / ZamowieniaWspolne124 / reguły wyżej też go mają. */

html.koszyk #basket-grid {
    --kz-gold: #B2965C;
    --kz-gold-hi: #e2c98f;
    --kz-gold-lo: #8f7a4f;
    --kz-text: #f2efe9;
    --kz-muted: #a9a49a;
    --kz-card: #202020;
    --kz-line: rgba(201, 169, 110, .15);
    --kz-sep: rgba(255, 255, 255, .06);
    --kz-btn-gold: linear-gradient(to bottom, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 100%),
                   linear-gradient(25deg, #9F7A27 0%, #C9A24D 55%, #EED48A 100%);
    color: var(--kz-text);
}

/* nagłówek */
html.koszyk #basket-grid > .basket-steps {
    padding: 0;
    margin-bottom: 36px;
}

html.koszyk #basket-grid > .basket-steps a {
    font-family: var(--playFair);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--kz-gold) !important; /* ZamowieniaWspolne124 ustawia tu kolor z !important */
    text-decoration: none;
}

html.koszyk #basket-grid > .basket-steps::after {
    content: "";
    display: block;
    width: 160px;
    height: 1px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--kz-gold), rgba(178, 150, 92, 0));
}

/* karta */
html.koszyk #basket-grid > .basket-area-empty + div {
    padding: 32px;
    background: var(--kz-card);
    border: 1px solid var(--kz-line);
    border-radius: 8px;
}

/* tabela */
html.koszyk #basket-grid .basket-area-items-list {
    width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    font-family: var(--inter);
    /* linia pod nagłówkami, 44px = wysokość th */
    background: linear-gradient(90deg, rgba(178, 150, 92, 0), rgba(178, 150, 92, .55) 20%, rgba(178, 150, 92, .55) 80%, rgba(178, 150, 92, 0)) 0 44px / 100% 1px no-repeat;
}

html.koszyk #basket-grid .basket-area-items-list thead tr,
html.koszyk #basket-grid .basket-area-items-list tbody tr {
    border-bottom: 0 !important; /* ZamowieniaWspolne124 daje wierszom złotą ramkę z !important */
}

html.koszyk #basket-grid .basket-area-items-list th {
    height: 44px;
    padding: 0 12px 12px;
    vertical-align: bottom;
    white-space: nowrap;
    font-family: var(--inter);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--kz-gold-lo);
    text-align: center;
}

html.koszyk #basket-grid .basket-area-items-list th.th-name {
    text-align: left;
}

html.koszyk #basket-grid .basket-area-items-list td {
    padding: 20px 12px;
    border-bottom: 1px solid var(--kz-sep);
    vertical-align: middle;
    text-align: center;
    transition: background-color .2s ease;
}

html.koszyk #basket-grid .basket-area-items-list tbody tr:hover > td {
    background-color: rgba(255, 255, 255, .025);
}

html.koszyk #basket-grid .basket-area-items-list td:nth-child(2) {
    text-align: left;
}

html.koszyk #basket-grid .basket-area-items-list img.item-image {
    display: block;
    max-width: 88px;
    max-height: 88px;
    margin: 0 auto;
    border: 1px solid var(--kz-line);
    border-radius: 4px;
}

html.koszyk #basket-grid .basket-area-items-list a.item-title {
    font-family: var(--playFair);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--kz-gold) !important; /* a.item-title wyżej w pliku ma kolor z !important */
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

html.koszyk #basket-grid .basket-area-items-list a.item-title:hover {
    color: var(--kz-gold-hi) !important; /* jak wyżej */
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

html.koszyk #basket-grid .basket-area-items-list .item-features {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--kz-muted);
}

html.koszyk #basket-grid .basket-area-items-list .item-features strong {
    font-weight: 500;
    color: var(--kz-text);
}

html.koszyk #basket-grid .basket-area-items-list .amount-was-changed {
    margin: 10px 0 0;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--kz-text);
    background: rgba(201, 169, 110, .08);
    border: 1px solid var(--kz-line);
    border-radius: 4px;
}

/* Vendero daje tu 90x25px i absolutne −/+, które nachodzą na pole; wolę flex */
html.koszyk #basket-grid .quantity-change {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    height: auto;
    margin: 0;
}

/* div.quantity-change button na górze pliku ma te właściwości z !important */
html.koszyk #basket-grid .quantity-change button {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    padding: 0;
    font-family: var(--inter) !important;
    font-size: 17px;
    line-height: 1;
    color: var(--kz-gold) !important;
    background: transparent;
    border: 1px solid rgba(178, 150, 92, .55) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

html.koszyk #basket-grid .quantity-change button:not(:disabled):hover {
    color: #1a1a1a !important; /* jak wyżej */
    background: var(--kz-gold);
    border-color: var(--kz-gold) !important;
}

html.koszyk #basket-grid .quantity-change button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

html.koszyk #basket-grid .quantity-change input {
    width: 40px;
    height: 32px;
    padding: 0;
    font-family: var(--inter);
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: center;
    background: transparent;
    border-radius: 4px;
}

html.koszyk #basket-grid .amount-quantity {
    display: block;
    padding: 4px 0 0;
    font-size: 12px;
    color: var(--kz-muted);
}

/* 4. kolumna to cena jedn., przedostatnia to wartość (Rabat bywa, więc liczę od końca) */
html.koszyk #basket-grid .basket-area-items-list td:nth-child(4),
html.koszyk #basket-grid .basket-area-items-list td:nth-last-child(2) {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

html.koszyk #basket-grid .basket-area-items-list td:nth-child(4) {
    font-size: 14px;
    color: var(--kz-muted);
}

html.koszyk #basket-grid .basket-area-items-list td:nth-last-child(2) strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--kz-text);
}

html.koszyk #basket-grid .basket-area-items-list .standard-price {
    font-size: 12px;
    color: #6f6b64;
}

/* × rysowany w CSS zamiast ikony z Vendero */
html.koszyk #basket-grid .remove-item-from-basket {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    color: var(--kz-muted);
    background: none;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

html.koszyk #basket-grid .remove-item-from-basket::before,
html.koszyk #basket-grid .remove-item-from-basket::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

html.koszyk #basket-grid .remove-item-from-basket::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

html.koszyk #basket-grid .remove-item-from-basket:hover {
    color: #e0625a;
    background-color: rgba(224, 98, 90, .12);
    border-color: rgba(224, 98, 90, .45);
}

/* kod rabatowy */
html.koszyk #basket-grid > .basket-area-empty + div > .row {
    margin: 0;
}

html.koszyk #basket-grid .discount-code-form {
    float: none;
    width: auto;
    margin: 0;
    padding: 24px 0 0;
    text-align: right;
}

html.koszyk #basket-grid .discount-code-form .checkbox {
    margin: 0;
    text-align: right;
}

html.koszyk #basket-grid .discount-code-form .checkbox label {
    font-family: var(--inter);
    font-size: 14px;
    color: var(--kz-muted);
    transition: color .2s ease;
}

html.koszyk #basket-grid .discount-code-form .checkbox label:hover {
    color: var(--kz-text);
}

html.koszyk #basket-grid .discount-code-form input[type="checkbox"] {
    accent-color: var(--kz-gold);
    cursor: pointer;
}

html.koszyk #basket-grid .discount-code-form .form-group {
    display: flex;
    flex-wrap: wrap;
    max-width: 340px;
    margin: 12px 0 0 auto;
    padding: 0;
}

html.koszyk #basket-grid .discount-code-form .form-group .validationMessage:empty {
    display: none; /* pusty też ma padding i czerwone tło */
}

html.koszyk #basket-grid .discount-code-form .form-group .validationMessage {
    flex-basis: 100%;
    font-size: 13px;
    text-align: left;
}

html.koszyk #basket-grid .discount-code-form input.input-discount-code {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    height: 40px;
    padding: 0 12px;
    font-family: var(--inter);
    font-size: 14px;
    color: var(--kz-text);
    background: #141414;
    border: 1px solid rgba(201, 169, 110, .25);
    border-radius: 4px 0 0 4px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

html.koszyk #basket-grid .discount-code-form input.input-discount-code::placeholder {
    color: #6f6b64;
}

html.koszyk #basket-grid .discount-code-form input.input-discount-code:focus {
    border-color: var(--kz-gold);
    box-shadow: 0 0 0 3px rgba(178, 150, 92, .2);
    outline: none;
}

/* html.koszyk div.form-group button.btn-discount-code wyżej w pliku ma !important */
html.koszyk #basket-grid .discount-code-form .btn-discount-code {
    position: static;
    flex: 0 0 auto;
    height: 40px;
    margin: 0;
    padding: 0 18px;
    font-family: var(--inter);
    font-size: 12px;
    font-weight: 600 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--kz-gold) !important;
    background: transparent !important;
    border: 1px solid var(--kz-gold) !important;
    border-radius: 0 4px 4px 0;
}

html.koszyk #basket-grid .discount-code-form .btn-discount-code:hover {
    color: #1a1a1a !important;
    background: var(--kz-gold) !important;
}

html.koszyk #basket-grid .discount-code-form .discount-code-entered {
    padding-top: 8px;
    font-family: var(--inter);
    font-size: 14px;
    color: var(--kz-muted);
}

html.koszyk #basket-grid .discount-code-form .discount-code-entered > span {
    color: var(--kz-gold);
}

/* komunikat o dostawie, wstawia go skrypt z panelu */
html.koszyk #basket-grid .lz-ship {
    margin: 24px 0 12px auto;
    max-width: 440px;
    padding: 14px 18px;
    border: 1px solid rgba(201, 169, 110, .35);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(201, 169, 110, .09), rgba(201, 169, 110, .03));
    color: #e9e4da;
    font-family: var(--inter);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

html.koszyk #basket-grid .lz-ship strong {
    color: #d9bb82;
    font-weight: 600;
}

html.koszyk #basket-grid .lz-ship__bar {
    height: 4px;
    margin-top: 12px;
    background: rgba(255, 255, 255, .08);
    border-radius: 2px;
    overflow: hidden;
}

html.koszyk #basket-grid .lz-ship__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #b8955a, #e2c98f);
    border-radius: 2px;
    transition: width .4s ease;
}

html.koszyk #basket-grid .lz-ship--free {
    display: flex;
    align-items: center;
    gap: 12px;
    border-color: rgba(201, 169, 110, .6);
    background: rgba(201, 169, 110, .12);
}

html.koszyk #basket-grid .lz-ship__icon {
    flex: 0 0 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2c98f, #b8955a);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
}

/* dobieranie produktów do darmowej dostawy (.lz-up), wstawia je ten sam skrypt co .lz-ship
   Tytuły w <div>, nie <p>, bo Root334 ustawia dla p font i kolor z !important */
html.koszyk #basket-grid .lz-up {
    max-width: 440px;
    margin: 4px 0 14px auto;
    padding: 16px;
    border: 1px solid rgba(201, 169, 110, .28);
    border-radius: 8px;
    background: radial-gradient(120% 80% at 100% 0%, rgba(201, 169, 110, .10), transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
    color: var(--kz-text);
    font-family: var(--inter);
    text-align: left;
    animation: lzUpIn .35s ease-out both;
}

html.koszyk #basket-grid .lz-up[hidden] {
    display: none;
}

html.koszyk #basket-grid .lz-up__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

html.koszyk #basket-grid .lz-up__icon {
    flex: 0 0 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2c98f, #b8955a);
    box-shadow: 0 0 0 4px rgba(201, 169, 110, .12);
    color: #1a1a1a;
}

html.koszyk #basket-grid .lz-up__title {
    margin: 0;
    font-family: var(--playFair);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .01em;
    color: var(--kz-gold-hi);
}

html.koszyk #basket-grid .lz-up__sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--kz-muted);
}

/* karta propozycji */
html.koszyk #basket-grid .lz-up__opt {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(201, 169, 110, .16);
    border-radius: 6px;
    background: rgba(255, 255, 255, .025);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    animation: lzUpIn .35s ease-out both;
}

html.koszyk #basket-grid .lz-up__opt:nth-child(3) {
    animation-delay: .06s;
}

html.koszyk #basket-grid .lz-up__opt:nth-child(4) {
    animation-delay: .12s;
}

html.koszyk #basket-grid .lz-up__opt:hover {
    border-color: rgba(201, 169, 110, .45);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

html.koszyk #basket-grid .lz-up__opt--best {
    margin-top: 16px;
    border-color: rgba(201, 169, 110, .5);
    background: linear-gradient(180deg, rgba(201, 169, 110, .08), rgba(201, 169, 110, .02));
}

html.koszyk #basket-grid .lz-up__badge {
    position: absolute;
    top: -9px;
    left: 12px;
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e2c98f, #c9a96e);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* zdjęcia, przy zestawie nachodzą na siebie */
html.koszyk #basket-grid .lz-up__imgs {
    display: flex;
    flex: 0 0 auto;
}

html.koszyk #basket-grid .lz-up__img {
    position: relative;
}

html.koszyk #basket-grid .lz-up__img + .lz-up__img {
    margin-left: -16px;
}

html.koszyk #basket-grid .lz-up__img img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 2px solid #1f1f1f;
    border-radius: 6px;
    outline: 1px solid rgba(201, 169, 110, .35);
    background: #222;
}

html.koszyk #basket-grid .lz-up__pct {
    position: absolute;
    left: -4px;
    bottom: -4px;
    z-index: 2;
    padding: 1px 5px;
    border-radius: 4px;
    background: #8c2f2f;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    color: #fff;
}

/* nazwa + cena */
html.koszyk #basket-grid .lz-up__info {
    flex: 1 1 0;
    min-width: 0;
}

html.koszyk #basket-grid .lz-up__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

html.koszyk #basket-grid .lz-up__item + .lz-up__item {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(201, 169, 110, .15);
}

html.koszyk #basket-grid .lz-up__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--playFair);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--kz-gold) !important; /* jak a.item-title w tabeli */
    text-decoration: none;
}

html.koszyk #basket-grid .lz-up__name:hover {
    color: var(--kz-gold-hi) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html.koszyk #basket-grid .lz-up__price {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--kz-text);
    text-align: right;
    white-space: nowrap;
}

html.koszyk #basket-grid .lz-up__old {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--kz-muted);
    text-decoration: line-through;
}

/* przycisk w tym samym złocie co „Zamówienie” */
html.koszyk #basket-grid .lz-up__btn {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: var(--kz-btn-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    color: #1a1a1a;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

html.koszyk #basket-grid .lz-up__btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(201, 162, 77, .25);
}

html.koszyk #basket-grid .lz-up__btn:active {
    transform: translateY(1px);
}

html.koszyk #basket-grid .lz-up__btn:focus-visible {
    outline: 2px solid var(--kz-gold-hi);
    outline-offset: 2px;
}

html.koszyk #basket-grid .lz-up__btn[disabled] {
    cursor: wait;
    filter: saturate(.6);
}

html.koszyk #basket-grid .lz-up__btn-main {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .06em;
    text-transform: uppercase;
}

html.koszyk #basket-grid .lz-up__btn-sub {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.25;
    opacity: .8;
}

html.koszyk #basket-grid .lz-up__btn.is-loading {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

html.koszyk #basket-grid .lz-up__spin {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(26, 26, 26, .3);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: lzUpSpin .7s linear infinite;
}

@keyframes lzUpIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@keyframes lzUpSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    html.koszyk #basket-grid .lz-up,
    html.koszyk #basket-grid .lz-up__opt {
        animation: none;
    }

    html.koszyk #basket-grid .lz-up__opt,
    html.koszyk #basket-grid .lz-up__btn {
        transition: none;
    }
}

@media (max-width: 420px) {
    html.koszyk #basket-grid .lz-up {
        padding: 14px 12px;
    }

    html.koszyk #basket-grid .lz-up__img img {
        width: 50px;
        height: 50px;
    }

    html.koszyk #basket-grid .lz-up__title {
        font-size: 16px;
    }
}

/* desktop: propozycje w pustej lewej kolumnie obok paska zamiast wąskiej kolumny pod nim.
   :has() - starsze przeglądarki dostaną zwykły układ jeden pod drugim */
@media (min-width: 992px) {
    html.koszyk #basket-grid .discount-code-form:has(> .lz-up:not([hidden])) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 440px;
        grid-template-rows: auto auto 1fr;
        column-gap: 32px;
        align-items: start;
    }

    html.koszyk #basket-grid .discount-code-form:has(> .lz-up:not([hidden])) > * {
        grid-column: 2;
    }

    html.koszyk #basket-grid .discount-code-form:has(> .lz-up:not([hidden])) > .lz-up {
        grid-column: 1;
        grid-row: 1 / span 3;
    }

    html.koszyk #basket-grid .discount-code-form:has(> .lz-up:not([hidden])) > .lz-ship {
        grid-row: 1;
    }

    html.koszyk #basket-grid .discount-code-form:has(> .lz-up:not([hidden])) > .checkbox {
        grid-row: 2;
    }

    html.koszyk #basket-grid .discount-code-form > .lz-up {
        max-width: none;
        margin: 24px 0 12px;
    }
}

/* szeroki ekran: karty obok siebie */
@media (min-width: 1200px) {
    html.koszyk #basket-grid .discount-code-form > .lz-up {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 18px 14px;
        align-items: stretch;
    }

    html.koszyk #basket-grid .discount-code-form > .lz-up[hidden] {
        display: none;
    }

    html.koszyk #basket-grid .lz-up__head {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    html.koszyk #basket-grid .lz-up__opt,
    html.koszyk #basket-grid .lz-up__opt--best {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 12px;
        margin-top: 0;
        padding: 16px 12px 12px;
    }

    html.koszyk #basket-grid .lz-up__imgs {
        align-self: flex-start;
    }

    html.koszyk #basket-grid .lz-up__info {
        flex: 1 1 auto;
        width: 100%;
    }

    html.koszyk #basket-grid .lz-up__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    html.koszyk #basket-grid .lz-up__price {
        text-align: left;
    }

    html.koszyk #basket-grid .lz-up__old {
        display: inline;
        margin-left: 6px;
    }

    html.koszyk #basket-grid .lz-up__btn {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* podsumowanie */
html.koszyk #basket-grid .basket-area-summary {
    margin: 24px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--kz-sep);
    text-align: right;
}

/* Root334 ustawia dla p font, kolor i margin z !important */
html.koszyk #basket-grid .basket-area-summary .basket-area-summary-price {
    margin: 0 0 24px !important;
    padding: 0;
    font-family: var(--inter) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: var(--kz-muted) !important;
}

/* span w basket-area-summary-price wyżej w pliku ma !important */
html.koszyk #basket-grid .basket-area-summary .basket-area-summary-price > span {
    display: inline;
    margin-left: 12px;
    padding: 0;
    font-family: var(--playFair) !important;
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--kz-gold) !important;
}

html.koszyk #basket-grid #submitBasket {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
}

html.koszyk #basket-grid #submitBasket::before,
html.koszyk #basket-grid #submitBasket::after {
    content: none; /* clearfix z Vendero psuje flexa */
}

/* form#submitBasket button.* wyżej w pliku ma !important */
html.koszyk #basket-grid #submitBasket .btn-checkout {
    float: none;
    width: auto;
    margin: 0;
    padding: 14px 36px;
    font-family: var(--inter);
    font-size: 14px;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #1a1a1a !important;
    background: var(--kz-btn-gold) !important;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

html.koszyk #basket-grid #submitBasket .btn-checkout:not(:disabled):hover {
    background: var(--kz-btn-gold) !important; /* :hover wyżej odwraca gradient */
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(201, 162, 77, .25);
}

html.koszyk #basket-grid #submitBasket .btn-checkout:disabled {
    opacity: .5;
    cursor: not-allowed;
}

html.koszyk #basket-grid #submitBasket .btn-shopping-continue {
    float: none;
    width: auto;
    margin: 0;
    padding: 4px 0 !important;
    font-family: var(--inter);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--kz-muted) !important;
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid transparent !important;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}

html.koszyk #basket-grid #submitBasket .btn-shopping-continue:hover {
    color: var(--kz-text) !important;
    border-bottom-color: var(--kz-gold) !important;
}

/* focus z klawiatury */
html.koszyk #basket-grid a:focus-visible,
html.koszyk #basket-grid button:focus-visible,
html.koszyk #basket-grid input:focus-visible {
    outline: 2px solid var(--kz-gold-hi);
    outline-offset: 3px;
}

/* Vendero zwija tabelę już od 992px, a ja chcę ją do 769px */
@media (min-width: 769px) {
    html.koszyk #basket-grid .basket-area-items-list thead {
        display: table-header-group;
    }

    html.koszyk #basket-grid .basket-area-items-list tr {
        display: table-row;
        padding: 0;
    }

    html.koszyk #basket-grid .basket-area-items-list td {
        display: table-cell;
        width: auto;
        clear: none;
    }

    html.koszyk #basket-grid .basket-area-items-list th.th-image {
        width: 112px;
    }

    html.koszyk #basket-grid .basket-area-items-list th.th-name {
        width: auto;
    }

    html.koszyk #basket-grid .basket-area-items-list th.th-quantity {
        width: 140px;
    }

    html.koszyk #basket-grid .basket-area-items-list th.th-remove {
        width: 60px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    html.koszyk #basket-grid > .basket-area-empty + div {
        padding: 24px;
    }
}

/* mobile: wiersz = karta */
@media (max-width: 768px) {
    html.koszyk #basket-grid > .basket-steps {
        margin-bottom: 24px;
    }

    html.koszyk #basket-grid > .basket-steps a {
        font-size: 26px;
    }

    html.koszyk #basket-grid > .basket-area-empty + div {
        padding: 16px;
    }

    html.koszyk #basket-grid .basket-area-items-list,
    html.koszyk #basket-grid .basket-area-items-list tbody {
        display: block;
        width: 100%;
        background: none;
    }

    html.koszyk #basket-grid .basket-area-items-list thead {
        display: none;
    }

    html.koszyk #basket-grid .basket-area-items-list tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) auto;
        column-gap: 14px;
        row-gap: 6px;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid var(--kz-sep) !important; /* desktopowa reguła wyżej zeruje to z !important */
    }

    html.koszyk #basket-grid .basket-area-items-list tbody tr:last-child {
        border-bottom: 0 !important;
    }

    html.koszyk #basket-grid .basket-area-items-list td {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
        text-align: left;
    }

    html.koszyk #basket-grid .basket-area-items-list tbody tr:hover > td {
        background-color: transparent;
    }

    html.koszyk #basket-grid .basket-area-items-list td:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: start;
    }

    html.koszyk #basket-grid .basket-area-items-list img.item-image {
        width: 80px;
        max-width: 80px;
        height: auto;
        max-height: none;
    }

    /* po prawej od góry: nazwa, cena, rabat, ilość + wartość */
    html.koszyk #basket-grid .basket-area-items-list td:nth-child(2) {
        grid-column: 2 / -1;
        padding-right: 40px; /* miejsce na × */
    }

    html.koszyk #basket-grid .basket-area-items-list td:nth-child(4) {
        order: 1;
        grid-column: 2 / -1;
        font-size: 12px;
    }

    html.koszyk #basket-grid .basket-area-items-list td:nth-child(5):nth-last-child(3) {
        order: 2;
        grid-column: 2 / -1;
        font-size: 12px;
        color: var(--kz-muted);
    }

    html.koszyk #basket-grid .basket-area-items-list td:nth-child(3) {
        order: 3;
        grid-column: 2;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    html.koszyk #basket-grid .amount-quantity {
        padding: 0;
    }

    html.koszyk #basket-grid .basket-area-items-list td:nth-last-child(2) {
        order: 4;
        grid-column: 3;
        text-align: right;
    }

    html.koszyk #basket-grid .basket-area-items-list a.item-title {
        font-size: 16px;
    }

    /* × w rogu karty, poza siatką */
    html.koszyk #basket-grid .basket-area-items-list td:last-child {
        position: absolute;
        top: 12px;
        right: 0;
    }

    html.koszyk #basket-grid .discount-code-form,
    html.koszyk #basket-grid .discount-code-form .checkbox {
        text-align: left;
    }

    html.koszyk #basket-grid .discount-code-form .form-group {
        max-width: none;
    }

    html.koszyk #basket-grid .lz-ship {
        max-width: none;
        margin: 16px 0;
    }

    html.koszyk #basket-grid .lz-up {
        max-width: none;
        margin: 0 0 16px;
    }

    html.koszyk #basket-grid .lz-up__opt {
        padding: 12px 10px;
        gap: 10px 12px;
    }

    html.koszyk #basket-grid .lz-up__item {
        gap: 8px;
    }

    html.koszyk #basket-grid .lz-up__name {
        -webkit-line-clamp: 3;
        font-size: 13.5px;
    }

    html.koszyk #basket-grid .basket-area-summary .basket-area-summary-price {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 18px !important; /* bo desktopowe 22px jest z !important */
    }

    html.koszyk #basket-grid .basket-area-summary .basket-area-summary-price > span {
        font-size: 24px;
    }

    html.koszyk #basket-grid #submitBasket {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    html.koszyk #basket-grid #submitBasket .btn-checkout {
        width: 100%;
        padding: 16px 24px;
    }

    html.koszyk #basket-grid #submitBasket .btn-shopping-continue {
        align-self: center;
    }
}
/* === /KOSZYK === */

/* dopisek pod sumą: koszt dostawy i formy płatności, wstawia go skrypt z panelu (widget lz-checkout) */
html.koszyk #basket-grid .basket-area-summary .basket-area-summary-price:has(+ .lz-pay) {
    margin-bottom: 10px !important; /* reguła wyżej daje 24px z !important */
}

html.koszyk #basket-grid .lz-pay {
    margin: 0 0 24px;
    font-family: var(--inter);
    font-size: 14px;
    line-height: 1.5;
    color: var(--kz-muted);
    text-align: right;
}

html.koszyk #basket-grid .lz-pay strong {
    font-weight: 600;
    color: var(--kz-gold-hi);
}

html.koszyk #basket-grid .lz-pay__methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
}

html.koszyk #basket-grid .lz-pay__chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 9px;
    color: #d8d2c4;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 4px;
}

html.koszyk #basket-grid .lz-pay__chip--main {
    font-weight: 700;
    letter-spacing: .04em;
    color: #1a1a1a;
    background: #f2efe9;
    border-color: #f2efe9;
}
