.hdv2-cart-modal {
    --hdv2-cart-modal-bg: var(--hdv2-cah-card, #fff);
    --hdv2-cart-modal-border: var(--hdv2-cah-border, #e8e8e6);
    --hdv2-cart-modal-fg: var(--hdv2-cah-fg, #1a1a1a);
    --hdv2-cart-modal-muted: var(--hdv2-cah-muted, #737373);
    --hdv2-cart-modal-accent: var(--hdv2-cah-accent, #f0f0ee);
    --hdv2-cart-modal-primary: var(--hdv2-cah-fg, #1a1a1a);
    --hdv2-cart-modal-primary-fg: var(--hdv2-cah-bg, #fff);
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.hdv2-cart-modal[hidden] {
    display: none;
}

.hdv2-cart-modal *,
.hdv2-cart-modal *::before,
.hdv2-cart-modal *::after {
    box-sizing: border-box;
}

.hdv2-cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: hsl(220 14% 12% / 0.55);
}

.hdv2-cart-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    border: 1px solid var(--hdv2-cart-modal-border);
    border-radius: 1rem;
    background: var(--hdv2-cart-modal-bg);
    box-shadow: 0 24px 60px hsl(0 0% 0% / 0.22);
    overflow: hidden;
}

.hdv2-cart-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.75rem 1.5rem 1.25rem;
    text-align: center;
}

.hdv2-cart-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: hsl(0 70% 97%);
    color: hsl(0 60% 45%);
}

.hdv2-cart-modal__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hdv2-cart-modal__title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hdv2-cart-modal-fg);
}

.hdv2-cart-modal__text {
    margin: 0;
    max-width: 22rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--hdv2-cart-modal-muted);
}

.hdv2-cart-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0 1.5rem 1.5rem;
}

.hdv2-cart-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.hdv2-cart-modal__btn--ghost {
    background: var(--hdv2-cart-modal-accent);
    border-color: var(--hdv2-cart-modal-border);
    color: var(--hdv2-cart-modal-fg);
}

.hdv2-cart-modal__btn--ghost:hover {
    background: color-mix(in srgb, var(--hdv2-cart-modal-accent) 70%, var(--hdv2-cart-modal-border));
}

.hdv2-cart-modal__btn--primary {
    background: var(--hdv2-cart-modal-primary);
    border-color: var(--hdv2-cart-modal-primary);
    color: var(--hdv2-cart-modal-primary-fg);
}

.hdv2-cart-modal__btn--primary:hover {
    opacity: 0.92;
}

body.hdv2-cart-modal-open {
    overflow: hidden;
}
