.pb-modal {
    border: 0;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    background: transparent;
    color: inherit;
}
.pb-modal::backdrop {
    background: transparent;
}
.pb-modal [data-modal-role="backdrop"] {
    min-height: 100dvh !important;
    width: 100%;
    box-sizing: border-box;
}
.pb-modal [data-modal-role="box"] {
    max-height: calc(100dvh - 48px);
    overflow: auto;
}
.pb-modal[data-position="top"] [data-modal-role="backdrop"] {
    align-items: flex-start !important;
    justify-content: center !important;
}
.pb-modal[data-position="bottom"] [data-modal-role="backdrop"] {
    align-items: flex-end !important;
    justify-content: center !important;
}
.pb-modal[data-position="left"] [data-modal-role="backdrop"] {
    align-items: center !important;
    justify-content: flex-start !important;
}
.pb-modal[data-position="right"] [data-modal-role="backdrop"] {
    align-items: center !important;
    justify-content: flex-end !important;
}
.pb-modal[data-position="center"] [data-modal-role="backdrop"] {
    align-items: center !important;
    justify-content: center !important;
}
.pb-modal[open][data-animation="fade"] {
    animation: pb-modal-fade 0.2s ease-out;
}
.pb-modal[open][data-animation="slide"] [data-modal-role="box"] {
    animation: pb-modal-slide 0.2s ease-out;
}
.pb-modal[open][data-animation="scale"] [data-modal-role="box"] {
    animation: pb-modal-scale 0.2s ease-out;
}
@keyframes pb-modal-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes pb-modal-slide {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes pb-modal-scale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pb-modal,
    .pb-modal * {
        animation: none !important;
    }
}

