.ll-alert-modal {
    align-items: center;
    background: rgba(25, 20, 17, .58);
    backdrop-filter: blur(5px);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 20px;
    position: fixed;
    transition: opacity .2s ease;
    z-index: 10100;
}

.ll-alert-modal[hidden] {
    display: none;
}

.ll-alert-modal.is-visible {
    opacity: 1;
}

.ll-alert-modal__panel {
    background: #fffdfa;
    border: 1px solid #e5ddd5;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(20, 15, 12, .24);
    color: #28231f;
    max-width: 100%;
    padding: clamp(28px, 5vw, 42px);
    position: relative;
    text-align: center;
    transform: translateY(12px) scale(.985);
    transition: transform .22s ease;
    width: 470px;
}

.ll-alert-modal.is-visible .ll-alert-modal__panel {
    transform: translateY(0) scale(1);
}

.ll-alert-modal__panel::before {
    background: var(--ll-alert-accent, #ad4d00);
    border-radius: 8px 8px 0 0;
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

.ll-alert-modal--success { --ll-alert-accent: #387653; --ll-alert-soft: #edf5f0; }
.ll-alert-modal--warning { --ll-alert-accent: #ad6300; --ll-alert-soft: #faf1e4; }
.ll-alert-modal--error { --ll-alert-accent: #7b2634; --ll-alert-soft: #f8ecee; }
.ll-alert-modal--info { --ll-alert-accent: #89533a; --ll-alert-soft: #f4ece7; }

.ll-alert-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #4c4641;
    display: inline-flex;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 14px;
    top: 14px;
    transition: background-color .18s ease, color .18s ease;
    width: 40px;
}

.ll-alert-modal__close:hover,
.ll-alert-modal__close:focus-visible {
    background: var(--ll-alert-soft, #f4ece7);
    color: var(--ll-alert-accent, #ad4d00);
}

.ll-alert-modal__icon {
    align-items: center;
    background: var(--ll-alert-soft, #f4ece7);
    border-radius: 50%;
    color: var(--ll-alert-accent, #ad4d00);
    display: inline-flex;
    font-size: 18px;
    height: 50px;
    justify-content: center;
    margin-bottom: 18px;
    width: 50px;
}

.ll-alert-modal__eyebrow {
    color: var(--ll-alert-accent, #ad4d00);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    margin: 0 0 9px;
    text-transform: uppercase;
}

.ll-alert-modal h2 {
    font-family: var(--ll-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 400;
    line-height: 1.12;
    margin: 0 auto 12px;
    max-width: 360px;
}

.ll-alert-modal__message {
    color: #6b645f;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 370px;
    white-space: pre-line;
}

.ll-alert-modal__actions {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 26px;
}

.ll-alert-modal__button {
    background: #28231f;
    border: 1px solid #28231f;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    min-height: 48px;
    min-width: 154px;
    padding: 12px 24px;
    text-transform: uppercase;
}

.ll-alert-modal__button:hover,
.ll-alert-modal__button:focus-visible {
    background: var(--ll-alert-accent, #ad4d00);
    border-color: var(--ll-alert-accent, #ad4d00);
}

.ll-alert-modal__link {
    border-bottom: 1px solid currentColor;
    color: #39332f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}

/* Keep the existing add-to-cart decision dialog in the same visual family. */
.ll-cart-added-dialog__content {
    border: 1px solid #e5ddd5;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(20, 15, 12, .24);
    overflow: hidden;
    position: relative;
}

.ll-cart-added-dialog__content::before {
    background: var(--ll-accent, #ad4d00);
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

@media (max-width: 520px) {
    .ll-alert-modal {
        align-items: flex-end;
        padding: 14px;
    }

    .ll-alert-modal__panel {
        padding: 30px 24px 26px;
        width: 100%;
    }

    .ll-alert-modal__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ll-alert-modal,
    .ll-alert-modal__panel {
        transition: none;
    }
}
