.storefront-cart {
    --cart-border: #eceef2;
}

.storefront-cart .inner-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.storefront-cart .inner-top {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.storefront-cart .side-nav {
    min-height: 0;
    overflow-y: auto;
}

.storefront-cart .rbt-cart-header {
    padding-bottom: 18px;
}

.storefront-cart .rbt-minicart-wrapper {
    padding: 0 28px;
}

.storefront-cart .minicart-item {
    position: relative;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--cart-border);
}

.storefront-cart .minicart-item .thumbnail {
    width: 140px;
    height: 110px;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f4f4;
}

.storefront-cart .minicart-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.storefront-cart .product-content {
    position: relative;
    min-width: 0;
    padding: 8px 0 0;
}

.storefront-cart .product-content .title {
    max-width: calc(100% - 24px);
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.35;
}

.storefront-cart .product-content .quantity {
    display: block;
    margin-bottom: 12px;
    color: #111;
    font-weight: 700;
}

.storefront-cart .product-content .price {
    color: var(--color-primary);
}

.storefront-cart-remove {
    position: absolute;
    z-index: 2;
    top: 2px;
    right: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
}

.storefront-cart .bottom-part {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.storefront-cart .rbt-qty-area {
    display: inline-flex;
    align-items: center;
    height: 32px;
    border: 1px solid #b9bdc5;
    border-radius: 18px;
    overflow: hidden;
}

.storefront-cart .rbt-qty-area .qty-item-btn {
    width: 32px;
    height: 30px;
    padding: 0;
    border: 0;
    background: #fff;
}

.storefront-cart .rbt-qty-area .items-qty-input {
    width: 38px;
    height: 30px;
    padding: 0;
    border: 0;
    appearance: textfield;
    text-align: center;
    font-weight: 700;
}

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

.storefront-cart-edit,
.storefront-cart-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 12px;
}

.storefront-cart-empty {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8b8e97;
    text-align: center;
}

.storefront-cart-empty i {
    font-size: 36px;
    color: var(--color-primary);
}

.storefront-cart-empty strong {
    color: #222;
}

.storefront-cart .rbt-minicart-footer {
    flex: 0 0 auto;
    padding: 12px 28px 24px;
    border-top: 1px solid var(--cart-border);
    background: #fff;
}

.storefront-cart-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    font-size: 14px;
}

.storefront-cart-summary strong {
    color: var(--color-primary);
    white-space: nowrap;
}

.storefront-cart-summary .is-free {
    color: #38d52c;
}

.storefront-cart-summary .storefront-cart-total {
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid var(--cart-border);
    color: #111;
    font-weight: 700;
}

.storefront-cart-shipping-progress {
    margin: 9px 0 18px;
}

.storefront-cart-shipping-progress strong {
    display: block;
    margin-bottom: 8px;
    color: #111;
    font-size: 13px;
}

.storefront-cart-shipping-progress > span {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: #d9f5db;
}

.storefront-cart-shipping-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2ac43a;
    transition: width .2s ease;
}

.storefront-cart .rbt-minicart-bottom .rbt-btn {
    border-radius: 999px;
}

.storefront-cart-view {
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    color: var(--color-primary);
    font-size: 13px;
}

.storefront-cart.is-loading::after {
    position: absolute;
    z-index: 20;
    inset: 0;
    content: "";
    cursor: wait;
    background: rgba(255, 255, 255, .45);
}

@media (max-width: 575px) {
    .rbt-cart-side-menu.storefront-cart {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh;
    }

    .rbt-cart-side-menu.storefront-cart .inner-wrapper {
        height: 100dvh;
    }

    .storefront-cart .rbt-minicart-wrapper {
        margin-left: 20px;
        margin-right: 20px;
    }

    .storefront-cart .rbt-minicart-wrapper {
        padding: 0;
    }

    .storefront-cart .minicart-item {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 14px;
    }

    .storefront-cart .minicart-item .thumbnail {
        width: 105px;
        height: 100px;
    }

    .storefront-cart .rbt-minicart-footer {
        padding-right: 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: 20px;
    }
}
.storefront-cart-toast {
    position: fixed;
    z-index: 11000;
    right: 24px;
    bottom: 92px;
    max-width: min(380px, calc(100vw - 32px));
    padding: 13px 18px;
    border-radius: 12px;
    color: #fff;
    background: var(--color-primary, #149b9b);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .18);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.storefront-cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.storefront-cart-toast.is-error {
    background: #d9424b;
}
.storefront-cart-item-options {
    display: block;
    margin: 2px 0 5px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}
