.carts-index .main-content {
    background: #f5f6f8;
}

.cart-page-shell {
    min-height: 65vh;
    padding: 22px 0 72px;
    color: #252a32;
}

.cart-page-shell .container {
    max-width: 1420px;
}

.cart-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #8c939d;
    font-size: 14px;
}

.cart-breadcrumb a {
    color: #68707a;
    text-decoration: none;
}

.cart-breadcrumb a:hover {
    color: #d47700;
}

.cart-breadcrumb i {
    font-size: 8px;
}

.cart-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
    padding: 26px 30px;
    overflow: hidden;
    background: linear-gradient(112deg, #1f242b 0%, #2c323a 67%, #353c45 100%);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(25, 30, 37, .12);
}

.cart-page-kicker,
.cart-section-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #d47a00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cart-page-header .cart-page-kicker {
    color: #ffb333;
}

.cart-page-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 780;
    line-height: 1.15;
}

.cart-page-header p {
    margin: 7px 0 0;
    color: #c6cbd1;
    font-size: 15px;
}

.cart-progress {
    display: flex;
    align-items: flex-start;
    min-width: 365px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-progress li {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    color: #9fa6ae;
    font-size: 12px;
}

.cart-progress li:not(:last-child)::after {
    position: absolute;
    top: 17px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #4a515a;
    content: '';
}

.cart-progress li > span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: #aeb4bb;
    font-size: 12px;
    font-weight: 800;
    background: #414850;
    border: 2px solid #555c65;
    border-radius: 50%;
}

.cart-progress li.is-active {
    color: #fff;
}

.cart-progress li.is-active > span {
    color: #1f242b;
    background: #ffad27;
    border-color: #ffad27;
    box-shadow: 0 0 0 5px rgba(255, 173, 39, .12);
}

.cart-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, .72fr);
    align-items: start;
    gap: 22px;
}

.cart-items-card,
.cart-options-card,
.cart-summary-card {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(32, 38, 46, .055);
}

.cart-items-card {
    padding: 24px;
}

.cart-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 19px;
}

.cart-section-heading h2 {
    margin: 0;
    color: #232830;
    font-size: 22px;
    font-weight: 760;
}

.cart-item-count,
.cart-package-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    color: #5f6771;
    font-size: 12px;
    font-weight: 750;
    background: #f1f3f5;
    border-radius: 99px;
    white-space: nowrap;
}

.cart-package + .cart-package {
    margin-top: 18px;
}

.cart-package {
    overflow: hidden;
    border: 1px solid #e6e9ed;
    border-radius: 14px;
}

.cart-package-header {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 59px;
    padding: 10px 13px;
    background: #fafbfc;
    border-bottom: 1px solid #e8eaed;
}

.cart-seller-icon,
.cart-options-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #a75d00;
    background: #fff1d8;
    border-radius: 10px;
}

.cart-package-header > div:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.cart-package-header span,
.cart-sidebar-heading small {
    color: #9299a2;
    font-size: 12px;
    line-height: 1.25;
}

.cart-package-header a {
    overflow: hidden;
    color: #2d333b;
    font-size: 14px;
    font-weight: 740;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-package-header .cart-package-count {
    flex: 0 0 auto;
    color: #777f89;
    font-size: 12px;
}

.cart-line-item {
    position: relative;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 17px;
    padding: 18px;
}

.cart-line-item + .cart-line-item {
    border-top: 1px solid #eceef1;
}

.cart-line-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    padding: 7px;
    overflow: hidden;
    background: #f7f8f9;
    border: 1px solid #eceef1;
    border-radius: 12px;
}

.cart-line-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .2s ease;
}

.cart-line-image:hover img {
    transform: scale(1.04);
}

.cart-line-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    min-width: 0;
}

.cart-line-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-self: stretch;
}

.cart-line-name {
    display: -webkit-box;
    max-width: 470px;
    margin-bottom: 7px;
    overflow: hidden;
    color: #292f37;
    font-size: 15px;
    font-weight: 720;
    line-height: 1.45;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cart-line-name:hover {
    color: #c86e00;
}

.cart-line-sku {
    color: #959ca5;
    font-size: 12px;
}

.cart-unit-price {
    margin-top: auto;
    color: #8b929b;
    font-size: 12px;
}

.cart-unit-price strong {
    margin-left: 4px;
    color: #555d67;
    font-size: 13px;
}

.cart-line-actions {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.cart-quantity {
    display: grid;
    grid-template-columns: 34px 43px 34px;
    height: 38px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
}

.cart-qty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #606873;
    font-size: 10px;
    background: #f4f5f7;
    border: 0;
}

.cart-qty-button:hover,
.cart-qty-button:focus-visible {
    color: #1e2329;
    background: #ffb12d;
    outline: none;
}

.cart-quantity .qty {
    width: 43px;
    padding: 0;
    color: #262c34;
    font-size: 13px;
    font-weight: 760;
    text-align: center;
    border: 0;
    border-right: 1px solid #e3e6e9;
    border-left: 1px solid #e3e6e9;
    border-radius: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}

.cart-quantity .qty::-webkit-inner-spin-button,
.cart-quantity .qty::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.cart-line-total {
    display: flex;
    min-width: 92px;
    flex-direction: column;
    text-align: right;
}

.cart-line-total span {
    margin-bottom: 2px;
    color: #9299a2;
    font-size: 12px;
}

.cart-line-total strong {
    color: #20252c;
    font-size: 17px;
}

.cart-line-item .remove-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #b64e58;
    font-size: 12px;
    background: #fff1f2;
    border: 0;
    border-radius: 10px;
}

.cart-line-item .remove-action-btn:hover,
.cart-line-item .remove-action-btn:focus-visible {
    color: #fff;
    background: #c74450;
    outline: none;
}

.cart-line-item .remove-action-btn:disabled {
    opacity: .45;
}

.cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #4d555f;
    font-size: 14px;
    font-weight: 720;
    text-decoration: none;
}

.cart-continue-link:hover {
    color: #c76e00;
}

.cart-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 13px;
}

.cart-options-card {
    overflow: hidden;
}

.cart-options-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 68px;
    padding: 13px 15px;
    color: #2d333a;
    text-align: left;
    background: #fff;
    border: 0;
}

.cart-options-toggle-copy,
.cart-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.cart-options-toggle-copy > span:last-child,
.cart-sidebar-heading > div {
    display: flex;
    flex-direction: column;
}

.cart-options-toggle-copy strong,
.cart-sidebar-heading strong {
    font-size: 14px;
    font-weight: 740;
}

.cart-options-toggle-copy small {
    margin-top: 2px;
    color: #949ba4;
    font-size: 12px;
}

.cart-options-chevron {
    margin-right: 4px;
    color: #838a93;
    font-size: 10px;
    transition: transform .2s ease;
}

.cart-options-toggle[aria-expanded='true'] .cart-options-chevron {
    transform: rotate(180deg);
}

.cart-shipping-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 2px 15px 17px;
    border-top: 1px solid #eceef1;
}

.cart-shipping-form > p,
.cart-form-hint {
    grid-column: 1 / -1;
}

.cart-shipping-form > p {
    margin: 14px 0 1px;
    color: #6f7781;
    font-size: 13px;
    line-height: 1.45;
}

.cart-form-field {
    min-width: 0;
}

.cart-form-field label {
    display: block;
    margin-bottom: 5px;
    color: #5d6570;
    font-size: 12px;
    font-weight: 720;
}

.cart-form-field .form-select,
.cart-form-field .form-control {
    min-height: 40px;
    padding: 7px 10px;
    color: #343a43;
    font-size: 13px;
    background-color: #f8f9fa;
    border-color: #e1e4e8;
    border-radius: 9px;
}

.cart-form-field .form-select:focus,
.cart-form-field .form-control:focus {
    background-color: #fff;
    border-color: #f4a41e;
    box-shadow: 0 0 0 3px rgba(244, 164, 30, .12);
}

.cart-form-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 110px;
    gap: 12px;
}

.cart-form-hint {
    color: #969da5;
    font-size: 11px;
}

.cart-form-hint i {
    color: #d58012;
}

.cart-delivery-methods {
    padding: 15px;
}

.cart-delivery-methods .cart-sidebar-heading {
    margin-bottom: 12px;
}

.cart-shipping-option {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px;
    cursor: pointer;
    background: #fafbfc;
    border: 1px solid #e6e9ec;
    border-radius: 10px;
}

.cart-shipping-option + .cart-shipping-option {
    margin-top: 7px;
}

.cart-shipping-option:has(input:checked) {
    background: #fff8eb;
    border-color: #efb048;
}

.cart-shipping-option input {
    margin: 0;
}

.cart-shipping-option > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.cart-shipping-option strong,
.cart-shipping-option b {
    color: #343a42;
    font-size: 13px;
}

.cart-shipping-option small {
    color: #999fa7;
    font-size: 11px;
}

.cart-summary-card {
    padding: 20px;
}

.cart-summary-heading {
    margin-bottom: 15px;
}

.cart-summary-heading h2 {
    font-size: 19px;
}

.cart-summary-bag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    color: #313740;
    background: #ffb12d;
    border-radius: 11px;
}

.cart-summary-lines {
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid #eaecf0;
    border-bottom: 1px solid #eaecf0;
}

.cart-summary-lines > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cart-summary-lines > div + div {
    margin-top: 11px;
}

.cart-summary-lines dt,
.cart-summary-lines dd {
    margin: 0;
    font-size: 13px;
}

.cart-summary-lines dt {
    color: #727a84;
    font-weight: 500;
}

.cart-summary-lines dd {
    color: #313740;
    font-weight: 720;
    text-align: right;
}

.cart-summary-lines .cart-summary-discount dd {
    color: #158456;
}

.cart-summary-pending {
    color: #a26a15;
    font-size: 11px;
    font-weight: 700;
}

.cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
}

.cart-summary-total > span {
    display: flex;
    flex-direction: column;
}

.cart-summary-total > span strong {
    color: #292f36;
    font-size: 14px;
}

.cart-summary-total small {
    margin-top: 2px;
    color: #9ba1a9;
    font-size: 11px;
}

.cart-summary-total > strong {
    color: #20252c;
    font-size: 23px;
    font-weight: 800;
}

.cart-checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 49px;
    padding: 10px 15px;
    color: #20242b;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    background: #ffad27;
    border: 1px solid #ffad27;
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(224, 137, 0, .18);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.cart-checkout-button:hover,
.cart-checkout-button:focus-visible {
    color: #fff;
    background: #252a31;
    border-color: #252a31;
    outline: none;
    transform: translateY(-1px);
}

.cart-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
    color: #838a93;
    font-size: 11px;
}

.cart-trust-row i {
    margin-right: 3px;
    color: #198b5c;
}

.cart-loading-state,
.cart-load-error,
.cart-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 42px 20px;
    flex-direction: column;
    text-align: center;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 17px;
    box-shadow: 0 8px 28px rgba(32, 38, 46, .055);
}

.cart-loading-spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border: 4px solid #eceef1;
    border-top-color: #f4a21d;
    border-radius: 50%;
    animation: cartSpin .8s linear infinite;
}

.cart-loading-state strong {
    color: #30363e;
    font-size: 15px;
}

.cart-loading-state small {
    margin-top: 3px;
    color: #969da5;
    font-size: 13px;
}

@keyframes cartSpin {
    to { transform: rotate(360deg); }
}

.cart-empty-state {
    min-height: 430px;
}

.cart-empty-visual {
    position: relative;
    margin-bottom: 21px;
}

.cart-empty-visual > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    color: #30363e;
    font-size: 31px;
    background: #fff0d4;
    border-radius: 28px;
    transform: rotate(-4deg);
}

.cart-empty-spark {
    position: absolute;
    color: #f3a21e;
    font-size: 13px;
}

.cart-empty-spark-one {
    top: -4px;
    right: -18px;
}

.cart-empty-spark-two {
    bottom: 2px;
    left: -17px;
    font-size: 9px;
}

.cart-empty-state h2,
.cart-load-error h2 {
    margin: 3px 0 8px;
    color: #282e36;
    font-size: 24px;
    font-weight: 760;
}

.cart-empty-state p,
.cart-load-error p {
    max-width: 420px;
    margin: 0 0 21px;
    color: #858c95;
    font-size: 14px;
}

.cart-empty-button {
    min-width: 205px;
}

.cart-load-error > i {
    margin-bottom: 12px;
    color: #c24853;
    font-size: 34px;
}

.cart-load-error button {
    min-height: 42px;
    padding: 8px 18px;
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    background: #252a31;
    border: 0;
    border-radius: 9px;
}

#cart-page.is-cart-busy .cart-content-grid {
    pointer-events: none;
    opacity: .62;
}

@media (max-width: 1199.98px) {
    .cart-page-shell .container {
        max-width: 1080px;
    }

    .cart-content-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(310px, .7fr);
    }

    .cart-line-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cart-line-actions {
        justify-content: space-between;
    }
}

@media (max-width: 991.98px) {
    .cart-page-header {
        padding: 22px;
    }

    .cart-progress {
        min-width: 310px;
    }

    .cart-content-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .cart-summary-card {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 767.98px) {
    .cart-page-shell {
        padding: 14px 0 94px;
    }

    .cart-page-shell .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .cart-breadcrumb {
        margin-bottom: 11px;
        font-size: 12px;
    }

    .cart-page-header {
        align-items: flex-start;
        margin-bottom: 13px;
        padding: 18px;
        flex-direction: column;
        border-radius: 14px;
    }

    .cart-page-header h1 {
        font-size: 27px;
    }

    .cart-page-header p {
        font-size: 14px;
    }

    .cart-progress {
        width: 100%;
        min-width: 0;
    }

    .cart-progress li > span {
        width: 31px;
        height: 31px;
    }

    .cart-progress li:not(:last-child)::after {
        top: 15px;
    }

    .cart-items-card {
        padding: 14px;
        border-radius: 14px;
    }

    .cart-section-heading h2 {
        font-size: 19px;
    }

    .cart-package-header {
        padding: 9px 10px;
    }

    .cart-line-item {
        grid-template-columns: 82px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 13px;
    }

    .cart-line-image {
        width: 82px;
        height: 82px;
    }

    .cart-line-name {
        font-size: 13px;
    }

    .cart-unit-price {
        margin-top: 8px;
    }

    .cart-line-details {
        display: contents;
    }

    .cart-line-copy {
        grid-column: 2;
    }

    .cart-line-actions {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 2px;
    }

    .cart-line-total strong {
        font-size: 15px;
    }

    .cart-line-item .remove-action-btn {
        position: absolute;
        right: 10px;
        bottom: 12px;
        width: 34px;
        height: 34px;
    }

    .cart-line-actions {
        padding-right: 48px;
    }

    .cart-sidebar {
        display: flex;
    }

    .cart-shipping-form {
        grid-template-columns: 1fr;
    }

    .cart-form-row,
    .cart-shipping-form > p,
    .cart-form-hint {
        grid-column: 1;
    }

    .cart-trust-row {
        justify-content: space-between;
    }
}

@media (max-width: 389.98px) {
    .cart-page-header {
        padding: 16px 14px;
    }

    .cart-progress li b {
        font-size: 11px;
    }

    .cart-items-card {
        padding: 10px;
    }

    .cart-line-item {
        grid-template-columns: 72px minmax(0, 1fr);
        padding: 11px 9px;
    }

    .cart-line-image {
        width: 72px;
        height: 72px;
    }

    .cart-quantity {
        grid-template-columns: 31px 38px 31px;
    }

    .cart-quantity .qty {
        width: 38px;
    }

    .cart-summary-card {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-loading-spinner,
    .cart-line-image img,
    .cart-checkout-button,
    .cart-options-chevron {
        animation: none;
        transition: none;
    }
}
