dialog.fss-dialog {
    border-radius: var(--wc-form-border-radius);
    border-width: var(--wc-form-border-width);
    max-inline-size: min(80vw, 400px);
    display: flex;
    flex-direction: column;
    gap: 1rem;

    &::backdrop {
        background: rgba(0 0 0 / 40%);
        backdrop-filter: blur(0.1rem);
    }

    &[open] {
        animation: fss-dialog-scale-up 0.3s cubic-bezier(0.25, 0, 0.3, 1);
    }

    &:not([open]) {
        opacity: 0;
        pointer-events: none;
    }

    & .fss-dialog-header h1 {
        line-height: normal;
        font-size: 1.5rem;
        font-weight: bold;
        margin: 0;
    }

    & .fss-dialog-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@keyframes fss-dialog-scale-up {
    0% {
        transform: scale(0.2);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}
