body.lotus-cart-drawer-open {
    overflow: hidden;
}

.lotus-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;

    pointer-events: none;
    visibility: hidden;

    transition: visibility 0s linear 0.2s;
}

.lotus-cart-drawer.is-open {
    pointer-events: auto;
    visibility: visible;

    transition-delay: 0s;
}

.lotus-cart-drawer__overlay {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
    background: rgba(0, 0, 0, 0.35);

    opacity: 0;

    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);

    transition:
        opacity 0.2s ease,
        backdrop-filter 0.2s ease,
        -webkit-backdrop-filter 0.2s ease;
}

.lotus-cart-drawer.is-open .lotus-cart-drawer__overlay {
    opacity: 1;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lotus-cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;

    width: min(380px, 92vw);
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #fff;

    transform: translateX(100%);
    transition: transform 0.2s ease;

    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
}

.lotus-cart-drawer.is-open .lotus-cart-drawer__panel {
    transform: translateX(0);
}

.lotus-cart-drawer__header {
    height: 72px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eee;
}

.lotus-cart-drawer__header h3 {
    margin: 0;

    font-size: 18px;
    font-weight: 800;
    color: #171717;
}

.lotus-cart-drawer__close {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;
    color: #171717;

    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.lotus-cart-drawer__content {
    position: relative;

    min-height: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
}

.lotus-cart-drawer__items {
    min-height: 0;
    flex: 1;

    overflow-y: auto;
}

.lotus-cart-item {
    position: relative;

    min-height: 118px;
    padding: 16px 16px 16px 42px;

    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;

    border-bottom: 1px solid #eee;
    direction: rtl;
}

.lotus-cart-item__remove {
    position: absolute;
    left: 18px;
    top: 20px;

    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;
    color: #777;

    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.lotus-cart-item__image {
    width: 66px;
    height: 82px;

    display: block;

    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.lotus-cart-item__image img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}

.lotus-cart-item__body {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lotus-cart-item__title {
    margin-left: 28px;

    display: block;

    color: #171717;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    text-decoration: none;
    text-align: right;
}

.lotus-cart-item__meta {
    margin-top: 4px;

    color: #777;
    font-size: 11px;
    line-height: 1.6;
}

.lotus-cart-item__qty {
    margin-top: 8px;

    height: 30px;

    display: inline-flex;
    align-items: center;

    border: 1px solid #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    direction: ltr;
}

.lotus-cart-item__qty button,
.lotus-cart-item__qty span {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: #fff;
    color: #666;

    font-size: 14px;
    line-height: 1;
}

.lotus-cart-item__qty button {
    cursor: pointer;
}

.lotus-cart-item__qty button:hover {
    background: #f5f5f5;
}

.lotus-cart-item__price {
    margin-top: 8px;

    color: #d5ac78;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.lotus-cart-drawer__footer {
    padding: 18px 22px;

    border-top: 1px solid #eee;
    background: #fff;
}

.lotus-cart-drawer__subtotal {
    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    color: #171717;
    font-size: 17px;
    font-weight: 800;
}

.lotus-cart-drawer__subtotal strong {
    color: #d5ac78;
    font-size: 16px;
    font-weight: 800;
}

.lotus-cart-drawer__cart-link,
.lotus-cart-drawer__checkout-link {
    height: 42px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.lotus-cart-drawer__cart-link {
    margin-bottom: 10px;

    background: #f5f5f5;
    color: #171717;
}

.lotus-cart-drawer__checkout-link {
    background: #d5ac78;
    color: #fff;
}

.lotus-cart-drawer__empty {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 24px;

    color: #777;
    font-size: 14px;
}

.lotus-cart-drawer.is-updating .lotus-cart-drawer__content::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.55);
    cursor: wait;
}
