modal-dialog {
    position: absolute;
}

modal-dialog .modal-dialog__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: color-mix(in oklab, var(--color-base-300) 50%, transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

modal-dialog .modal-dialog__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-base-100);
    padding: 1rem;
    border-radius: var(--radius-box);
    position: relative;
    max-width: 600px;
    max-height: 80dvh;
    overflow: auto;
    margin: 1rem;
}

modal-dialog .modal-dialog__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

modal-dialog .modal-dialog__title {
    font-size: 1.875rem;
    font-weight: bold;
}

modal-dialog .modal-dialog__close {
    background: none;
    border: none;
    font-size: 1.875rem;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            filter: brightness(1.2);
        }
    }
}

modal-dialog .modal-dialog__body {
}

modal-dialog .modal-dialog__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    gap: 1rem;
}
