
.store-cart-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    text-decoration: none;
}

.store-cart-nav svg {
    width: 24px;
    height: 24px;
}

.store-cart-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -5px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.store-cart-toast {
    position: fixed;
    z-index: 9999;
    inset-inline-end: 20px;
    bottom: 24px;
    max-width: min(360px, calc(100% - 40px));
    padding: 12px 16px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
}

.storefront-cart-form {
    margin-top: 14px;
}

/* Cart inside V10 header actions */
.da-actions .store-cart-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 44px;
    height: auto;
    min-height: 42px;
    padding-inline: 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.da-actions .store-cart-nav svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.da-actions .store-cart-nav-label {
    font-size: 13px;
    font-weight: 800;
}

.da-actions .store-cart-badge {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 1100px) {
    .da-actions .store-cart-nav-label {
        display: none;
    }

    .da-actions .store-cart-nav {
        width: 42px;
        padding-inline: 0;
    }
}

/* Cart phase closure */
.store-cart-page {
    padding: 44px 0 72px;
}

.store-cart-shell {
    width: min(1080px, 92%);
    margin: 0 auto;
}

.store-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.store-cart-list {
    display: grid;
    gap: 12px;
}

.store-cart-item {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        auto
        auto
        auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.store-cart-item form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.store-cart-item input[type="number"] {
    width: 78px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid #d8dde3;
    border-radius: 10px;
    text-align: center;
}

.store-cart-item button,
.store-cart-clear-button {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.store-cart-item form:first-of-type button {
    background: #111;
    color: #fff;
}

.store-cart-item form:last-of-type button {
    background: #fff1f0;
    color: #b42318;
}

.store-cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    background: #f6f7f8;
}

.store-cart-clear-button {
    background: #eceff2;
}

@media (max-width: 720px) {
    .store-cart-item {
        grid-template-columns: 1fr auto;
    }

    .store-cart-item > div:first-child {
        grid-column: 1 / -1;
    }

    .store-cart-summary {
        align-items: stretch;
        flex-direction: column;
    }
}

/* =========================================================
   CART FINAL CLOSURE
   ========================================================= */

.store-cart-page {
    padding: 52px 0 78px;
}

.store-cart-shell {
    width: min(1080px, 92%);
    margin-inline: auto;
}

.store-cart-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.store-cart-head h1 {
    margin: 5px 0 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.store-cart-eyebrow {
    font-size: 13px;
    font-weight: 800;
    opacity: .65;
}

.store-cart-list {
    display: grid;
    gap: 12px;
}

.store-cart-item {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        auto
        minmax(125px, auto)
        auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #e4e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .035);
}

.store-cart-product {
    display: grid;
    gap: 5px;
}

.store-cart-product strong {
    font-size: 15px;
}

.store-cart-product span {
    font-size: 13px;
    opacity: .62;
}

.store-cart-update {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-cart-update input {
    width: 76px;
    min-height: 42px;
    padding: 7px;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font: inherit;
    font-weight: 700;
}

.store-cart-update button,
.store-cart-remove,
.store-cart-clear-button {
    min-height: 42px;
    padding-inline: 15px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.store-cart-update button {
    background: #111827;
    color: #fff;
}

.store-cart-remove {
    background: #fff1f0;
    color: #b42318;
}

.store-cart-line-total {
    white-space: nowrap;
}

.store-cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #ece5d9;
    border-radius: 18px;
    background: #faf8f4;
}

.store-cart-total {
    display: grid;
    gap: 5px;
}

.store-cart-total span {
    font-size: 13px;
    opacity: .65;
}

.store-cart-total strong {
    font-size: 22px;
}

.store-cart-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-cart-clear-button {
    background: #eef0f2;
    color: #252b33;
}

.store-cart-checkout-ready {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 22px;
    border-radius: 11px;
    background: #c88a08;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    opacity: .55;
    cursor: not-allowed;
}

.store-cart-policy {
    margin-top: 12px;
    font-size: 12px;
    opacity: .6;
}

.store-cart-empty {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 64px 20px;
    border: 1px solid #e4e7eb;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.store-cart-empty h2 {
    margin: 0;
    font-size: 20px;
}

.store-cart-empty-icon {
    font-size: 34px;
}

.store-cart-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 20px;
    border-radius: 11px;
    background: #c88a08;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.store-cart-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .store-cart-page {
        padding: 28px 0 56px;
    }

    .store-cart-item {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .store-cart-product {
        grid-column: 1 / -1;
    }

    .store-cart-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .store-cart-footer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .store-cart-footer-actions button,
    .store-cart-checkout-ready {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .store-cart-item {
        grid-template-columns: 1fr;
    }

    .store-cart-update {
        justify-content: space-between;
    }

    .store-cart-line-total {
        font-size: 16px;
    }

    .store-cart-footer-actions {
        grid-template-columns: 1fr;
    }
}

/* Active checkout button */
.store-cart-checkout-ready {
    opacity: 1 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #c88a08;
    color: #fff;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        opacity .18s ease;
}

.store-cart-checkout-ready:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.store-cart-checkout-ready:active {
    transform: translateY(0);
}

.store-cart-checkout-ready:focus-visible {
    outline: 3px solid rgba(200, 138, 8, .28);
    outline-offset: 3px;
}


/* =========================================================
   CHECKOUT FINAL UI
   ========================================================= */

.store-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
    gap: 28px;
    align-items: start;
}

.store-checkout-main {
    display: grid;
    gap: 20px;
}

.store-checkout-card,
.store-checkout-summary {
    border: 1px solid #e7dfd2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, .055);
}

.store-checkout-card {
    padding: 26px;
}

.store-checkout-card h2,
.store-checkout-summary h2 {
    margin: 0 0 22px;
    font-size: 20px;
    line-height: 1.35;
}

.store-checkout-card label {
    display: grid;
    gap: 7px;
    margin-bottom: 17px;
    font-size: 13px;
    font-weight: 800;
}

.store-checkout-card label:last-child {
    margin-bottom: 0;
}

.store-checkout-card input,
.store-checkout-card textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font: inherit;
    outline: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.store-checkout-card input {
    min-height: 48px;
    padding: 10px 13px;
}

.store-checkout-card textarea {
    min-height: 120px;
    padding: 13px;
    resize: vertical;
}

.store-checkout-card input:focus,
.store-checkout-card textarea:focus {
    border-color: #c88a08;
    box-shadow: 0 0 0 3px rgba(200, 138, 8, .11);
}

.store-checkout-method {
    position: relative;
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding: 16px 48px 16px 16px;
    border: 1px solid #eadfc9;
    border-radius: 14px;
    background: #fffbf3;
}

[dir="ltr"] .store-checkout-method {
    padding: 16px 16px 16px 48px;
}

.store-checkout-method::before {
    content: "✓";
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 999px;
    background: #c88a08;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    transform: translateY(-50%);
}

.store-checkout-method strong {
    font-size: 14px;
}

.store-checkout-method small {
    opacity: .65;
    line-height: 1.6;
}

.store-checkout-summary {
    position: sticky;
    top: 110px;
    padding: 26px;
}

.store-checkout-company {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f3eb;
    font-weight: 800;
}

.store-checkout-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid #eef0f2;
    font-size: 13px;
}

.store-checkout-line span {
    line-height: 1.6;
}

.store-checkout-line strong {
    white-space: nowrap;
}

.store-checkout-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 8px;
    padding: 18px 0;
    font-size: 16px;
}

.store-checkout-final strong {
    color: #b77900;
    font-size: 21px;
    white-space: nowrap;
}

.store-checkout-summary .store-cart-primary {
    width: 100%;
    min-height: 50px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(200, 138, 8, .18);
}

.store-checkout-errors {
    margin-bottom: 20px;
    padding: 15px 18px;
    border: 1px solid #f3c7c3;
    border-radius: 14px;
    background: #fff4f2;
    color: #9f271f;
}

.store-checkout-errors ul {
    margin: 0;
    padding-inline-start: 20px;
}

.store-order-success {
    width: min(650px, 100%);
    margin-inline: auto;
    padding: 42px;
    border: 1px solid #e7dfd2;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 14px 38px rgba(17, 24, 39, .06);
}

.store-order-success-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: #c88a08;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
}

.store-order-success h1 {
    margin: 0 0 10px;
}

.store-order-success dl {
    margin: 26px 0;
    text-align: start;
}

.store-order-success dl > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f2;
}

.store-order-success dt {
    opacity: .65;
}

.store-order-success dd {
    margin: 0;
    font-weight: 800;
}

@media (max-width: 900px) {
    .store-checkout-grid {
        grid-template-columns: 1fr;
    }

    .store-checkout-summary {
        position: static;
    }
}

@media (max-width: 560px) {
    .store-checkout-card,
    .store-checkout-summary,
    .store-order-success {
        padding: 18px;
        border-radius: 16px;
    }

    .store-checkout-line,
    .store-checkout-final {
        gap: 12px;
    }
}


/* DLEELK_MOBILE_CART_MATCH_MENU_V2 */
.da-header .store-cart-badge[hidden] {
    display: none !important;
}

@media (max-width: 920px) {
    .da-header .da-header__inner:has(> .da-actions > .store-cart-nav) {
        display: flex !important;
        direction: ltr !important;
        flex-direction: row !important;
        align-items: center;
        gap: 10px;
    }

    .da-header .da-header__inner:has(> .da-actions > .store-cart-nav) > .da-brand {
        order: 1 !important;
        min-width: 0;
        flex: 0 1 auto;
        margin: 0 auto 0 0 !important;
    }

    .da-header .da-header__inner:has(> .da-actions > .store-cart-nav) > .da-brand img {
        max-width: 100%;
        height: auto;
    }

    .da-header .da-header__inner > .da-actions:has(> .store-cart-nav) {
        display: flex !important;
        order: 2 !important;
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .da-header .da-actions > :not(.store-cart-nav) {
        display: none !important;
    }

    .da-header .da-actions .store-cart-nav-label {
        display: none !important;
    }

    .da-header .da-header__inner:has(> .da-actions > .store-cart-nav) > .da-mobile-toggle {
        order: 3 !important;
        margin: 0 !important;
    }

    .da-header .da-actions > .store-cart-nav,
    .da-header .da-header__inner:has(> .da-actions > .store-cart-nav) > .da-mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 46px;
        min-width: 46px;
        height: 46px;
        min-height: 46px;
        flex: 0 0 46px;
        padding: 0;
        border: 0;
        border-radius: 14px;
        color: #fff;
        background: linear-gradient(135deg, #c9962c, #9d6914);
        box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
        text-decoration: none;
    }

    .da-header .da-header__inner:has(> .da-actions > .store-cart-nav) > .da-mobile-toggle {
        flex-direction: column;
        gap: 5px;
    }

    .da-header .da-header__inner:has(> .da-actions > .store-cart-nav) > .da-mobile-toggle span {
        margin: 0;
    }

    .da-header .da-actions .store-cart-nav svg {
        width: 23px;
        height: 23px;
        color: #fff;
    }

    .da-header .da-actions .store-cart-badge {
        top: -6px;
        right: -6px;
        left: auto;
        border: 2px solid #fff;
        background: #111;
        color: #fff;
    }
}
/* END DLEELK_MOBILE_CART_MATCH_MENU_V2 */


/* DLEELK_COMPANY_CART_UI_V1 */
@media (max-width: 768px) {
    nav.dleelk-company-nav.dleelk-company-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    nav.dleelk-company-nav.dleelk-company-nav > a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100%;
        gap: 6px;
        padding: 10px 12px !important;
        white-space: normal !important;
        text-align: center;
        overflow-wrap: anywhere;
    }

    nav.dleelk-company-nav.dleelk-company-nav > a > span {
        flex-shrink: 0;
    }
}

#company-products .storefront-cart-form {
    margin-top: 14px;
}

#company-products .storefront-order-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

#company-products .storefront-quantity {
    display: grid;
    gap: 6px;
    flex: 0 1 90px;
}

#company-products .storefront-quantity input {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #ddd3c3;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font: inherit;
}

#company-products .storefront-order-submit {
    flex: 1 1 140px;
    min-height: 44px;
    padding: 10px 14px;
}

#company-products .storefront-stock-note {
    margin-top: 10px;
    font-size: 12px;
}
/* END DLEELK_COMPANY_CART_UI_V1 */
