.weddy-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: color-mix(in srgb, var(--weddy-text) 20%, transparent);
    backdrop-filter: blur(4px);
}

.weddy-modal-overlay.is-open {
    display: flex;
}

.weddy-modal {
    position: relative;
    width: 100%;
    max-width: 32rem;
    overflow: hidden;
    border-radius: .75rem;
    background: var(--surface);
    box-shadow:
        0 28px 56px color-mix(in srgb, #795354 8%, transparent),
        0 12px 20px color-mix(in srgb, #725a43 6%, transparent);
    border: 1px solid color-mix(in srgb, #d0c5b4 20%, transparent);
}

.weddy-modal-content {
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.weddy-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, #8e877d 40%, transparent);
    padding: 0;
    line-height: 1;
}

.weddy-modal-close .material-symbols-outlined {
    font-size: 1.875rem;
}

.weddy-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: .75rem;
    border-radius: 9999px;
    background: #eae8e3;
    color: var(--weddy-primary);
    align-self: center;
}

.weddy-modal-icon .material-symbols-outlined {
    font-size: 2rem;
}

.weddy-modal-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weddy-modal-title {
    margin: 0;
    font-family: "Noto Serif", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.875rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--weddy-text);
}

.weddy-modal-description {
    max-width: 24rem;
    margin: 0 auto;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    color: var(--weddy-muted);
    font-size: 1.125rem;
    line-height: 1.6;
}

.weddy-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: .25rem;
}

.weddy-modal-actions .btn-primary,
.weddy-modal-actions .btn-preview {
    width: 100%;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
}

.weddy-modal-actions .btn-primary {
    border: 1px solid var(--primary);
}

.weddy-modal-actions .btn-primary,
.weddy-modal-actions .btn-preview {
    justify-content: center;
}

.weddy-modal-footer-line {
    width: 3rem;
    height: 1px;
    margin: .25rem auto 0;
    background: color-mix(in srgb, #d0c5b4 30%, transparent);
}

.weddy-modal-footnote {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .12rem;
    color: color-mix(in srgb, var(--weddy-muted) 60%, transparent);
}

@media (max-width: 640px) {
    .weddy-modal-content {
        padding: 2rem 1.25rem 1.5rem;
        gap: 1.5rem;
    }

    .weddy-modal-title {
        font-size: 1.5rem;
    }

    .weddy-modal-description {
        font-size: 1rem;
    }

    .weddy-modal-actions .btn-primary,
    .weddy-modal-actions .btn-preview {
        padding: 1rem 1.5rem;
    }
}
