
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;
}

/* 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 .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 === */
