
.rhigi-cart-remove-modal[hidden] {
    display: none !important;
}

.rhigi-cart-remove-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.rhigi-cart-remove-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .62);
    backdrop-filter: blur(3px);
}

.rhigi-cart-remove-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    padding: 24px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(15,23,42,.34);
    transform: translateY(12px) scale(.97);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.rhigi-cart-remove-modal.is-open .rhigi-cart-remove-modal__dialog {
    transform: none;
    opacity: 1;
}

.rhigi-cart-remove-modal__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #b91c1c;
    background: #fee2e2;
}

.rhigi-cart-remove-modal__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rhigi-cart-remove-modal h2 {
    margin: 0;
    color: #111827;
    font-size: 23px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

.rhigi-cart-remove-modal p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.rhigi-cart-remove-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #334155;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 24px !important;
    line-height: 1 !important;
}

.rhigi-cart-remove-modal__actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rhigi-cart-remove-modal__actions button {
    min-height: 48px;
    padding: 0 15px;
    border-radius: 13px;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer;
}

.rhigi-cart-remove-modal__cancel {
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #fff;
}

.rhigi-cart-remove-modal__confirm {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 10px 24px rgba(185,28,28,.22);
}

body.rhigi-cart-remove-modal-open {
    overflow: hidden !important;
}

@media (max-width: 560px) {
    .rhigi-cart-remove-modal {
        align-items: end;
        padding: 10px;
    }

    .rhigi-cart-remove-modal__dialog {
        width: 100%;
        padding: 22px 18px 18px;
        border-radius: 22px 22px 16px 16px;
    }

    .rhigi-cart-remove-modal__actions {
        grid-template-columns: 1fr;
    }

    .rhigi-cart-remove-modal__confirm {
        order: -1;
    }
}


/* 9.0.14 mobile viewport stability */
.rhigi-cart-remove-modal {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    overscroll-behavior: contain;
    touch-action: none;
}

.rhigi-cart-remove-modal__dialog {
    touch-action: auto;
}

body.rhigi-cart-remove-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

@supports not (height: 100dvh) {
    .rhigi-cart-remove-modal {
        height: 100vh !important;
    }
}
