.mit-mini-cart {
    position: fixed;
    inset: 0 0 0 auto;
    right: 0;
    z-index: 1047;
    display: flex;
    flex-direction: column;
    width: min(410px, calc(100vw - 28px));
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #f6f7f9;
    border-radius: 18px 0 0 18px;
    box-shadow: -22px 0 55px rgba(16, 20, 26, .24);
    transform: translateX(105%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.mit-mini-cart.active {
    right: 0;
    transform: translateX(0);
}

.mit-mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-height: 78px;
    padding: 14px 15px 14px 17px;
    color: #303640;
    text-align: left;
    background: #fff;
    border-bottom: 1px solid #e4e7ea;
}

.mini-cart-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.mini-cart-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    color: #20242b;
    background: #ffad27;
    border-radius: 12px;
}

.mini-cart-heading > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.2;
}

.mini-cart-heading small {
    margin-bottom: 3px;
    color: #9299a3;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mini-cart-heading strong {
    color: #20242b;
    font-size: 16px;
    font-weight: 750;
}

.mit-mini-cart .mit-mini-cart-close {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #39404a;
    background: #f0f2f4;
    border: 1px solid #e2e5e8;
    border-radius: 50%;
    transform: none;
}

.mit-mini-cart .mit-mini-cart-close i {
    width: auto;
    height: auto;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    background: transparent;
    border-radius: 0;
}

.mit-mini-cart .mit-mini-cart-close:hover,
.mit-mini-cart .mit-mini-cart-close:focus-visible {
    color: #fff;
    background: #20242b;
    border-color: #20242b;
    outline: none;
}

.mini-cart-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.mit-mini-cart .mit-mini-cart-product-list {
    flex: 1 1 auto;
    max-height: none;
    margin: 0;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    scrollbar-color: #c8cdd3 transparent;
    scrollbar-width: thin;
}

.mit-mini-cart .mini-cart-product-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 11px;
    margin-bottom: 8px;
    padding: 10px;
    overflow: visible;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 13px;
}

.mit-mini-cart .mini-cart-product-item .cart-product-image {
    width: 68px;
    height: 68px;
    margin: 0;
    overflow: hidden;
    background: #f7f8f9;
    border: 1px solid #eceef1;
    border-radius: 10px;
}

.mit-mini-cart .cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mit-mini-cart .min-cart-product-details {
    min-width: 0;
    margin: 0 !important;
}

.mit-mini-cart .min-cart-product-details h3 {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mit-mini-cart .min-cart-product-details h3 a {
    color: #343a43;
    text-decoration: none;
}

.mit-mini-cart .min-cart-product-details > span {
    color: #8c939d;
    font-size: 11px;
}

.mit-mini-cart .mini-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #c2414e;
    font-size: 11px;
    background: #fff0f1;
    border: 0;
    border-radius: 9px;
}

.mini-cart-summary {
    flex: 0 0 auto;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e3e6ea;
    box-shadow: 0 -9px 22px rgba(25, 30, 37, .055);
}

.mit-mini-cart .minicart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 13px;
    color: #737b85;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.3;
    text-transform: none;
}

.mit-mini-cart .minicart-total strong {
    color: #20242b;
    font-size: 18px;
}

.mit-mini-cart .minicart-button {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 8px;
    margin: 0;
}

.mit-mini-cart .minicart-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 45px;
    padding: 9px;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
}

.mini-cart-view-button {
    color: #343a43;
    background: #f1f3f5;
    border: 1px solid #e1e4e8;
}

.mini-cart-checkout-button {
    color: #20242b;
    background: #ffad27;
    border: 1px solid #ffad27;
}

.mini-cart-summary > p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 11px 0 0;
    color: #888f99;
    font-size: 10px;
}

.mini-cart-summary > p i {
    color: #27845f;
}

.mini-cart-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 34px;
    text-align: center;
}

.mini-cart-empty-state > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    color: #b76800;
    font-size: 27px;
    background: #fff0d6;
    border: 1px solid #ffdfaa;
    border-radius: 24px;
}

.mini-cart-empty-state h3 {
    margin: 22px 0 8px;
    color: #20242b;
    font-size: 21px;
    font-weight: 760;
}

.mini-cart-empty-state p {
    max-width: 280px;
    margin: 0;
    color: #7b838d;
    font-size: 13px;
    line-height: 1.6;
}

.mit-mini-cart .mini-cart-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-width: 190px;
    height: 47px;
    margin-top: 22px;
    padding: 10px 17px;
    color: #20242b;
    font-size: 13px;
    font-weight: 750;
    background: #ffad27;
    border: 0;
    border-radius: 11px;
}

.mit-mini-cart .mini-cart-continue i {
    color: inherit;
    font-size: 10px;
}

@media (max-width: 479.98px) {
    .mit-mini-cart {
        width: calc(100vw - 20px);
        border-radius: 16px 0 0 16px;
    }

    .mit-mini-cart .minicart-button {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mit-mini-cart {
        transition: none;
    }
}
