.shop-cart-confirmation {
    position: fixed;
    box-sizing: border-box;
    width: min(394px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 17px;
    margin: 0;
    overflow: auto;
    border: 1px solid #eae1e6;
    border-radius: 15px;
    background: #fff;
    color: #251f27;
    box-shadow: 0 12px 38px #40203325;
    z-index: 10020;
}

.shop-cart-confirmation::backdrop { background: #251f2733; }

.shop-cart-confirmation__head,
.shop-cart-confirmation__product,
.shop-cart-confirmation__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-cart-confirmation__head { padding-bottom: 12px; }
.shop-cart-confirmation__head h2 {
    flex: 1;
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}

.shop-cart-confirmation__check,
.shop-cart-confirmation__close {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e7f4eb;
    color: #24694d;
}

.shop-cart-confirmation__check::after {
    width: 11px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg) translateY(-1px);
    content: "";
}

.shop-cart-confirmation__close { background: #f6f2f5; color: #554c56; cursor: pointer; }
.shop-cart-confirmation__close::before,
.shop-cart-confirmation__close::after {
    position: absolute;
    width: 11px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
    content: "";
}
.shop-cart-confirmation__close::after { transform: rotate(-45deg); }

.shop-cart-confirmation__product {
    padding: 13px 0;
    border-block: 1px solid #eee7eb;
    font-size: 13px;
    line-height: 1.45;
}
.shop-cart-confirmation__product img { flex: 0 0 62px; border-radius: 8px; object-fit: contain; }
.shop-cart-confirmation__product div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.shop-cart-confirmation__product span { display: block; margin-top: 3px; color: #6b616a; font-size: 12px; }
.shop-cart-confirmation__product b { color: #982645; white-space: nowrap; }
.shop-cart-confirmation__actions { padding-top: 15px; align-items: stretch; }
.shop-cart-confirmation__actions > * {
    display: grid;
    place-items: center;
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 6px;
    border: 1px solid #cbaab9;
    border-radius: 9px;
    background: #fff;
    color: #87263d;
    font: inherit;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.shop-cart-confirmation__actions a { border-color: #982645; background: #982645; color: #fff; }
.shop-cart-confirmation :is(button, a):focus-visible { outline: 2px solid #87263d; outline-offset: 2px; }

.shop-phone-buy-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-phone-buy-actions > :is(.dathang, .cart_popup) {
    display: grid;
    place-items: center;
    flex: 1;
    min-width: 122px;
    min-height: 44px;
    margin: 0;
    padding: 7px;
    border: 1px solid #982645;
    border-radius: 9px;
    background: #fff;
    color: #87263d;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.shop-phone-buy-actions > .cart_popup { background: #982645; color: #fff; }

@media (max-width: 767px) {
    .shop-cart-confirmation {
        inset: auto 0 0;
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 20px);
        padding: 19px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 18px 18px 0 0;
    }
    .shop-cart-confirmation__product b { font-size: 12px; }
    .shop-cart-confirmation__actions > * { font-size: 12px; }
}
