dialog {
    border: none;
    padding: 0;
    max-width: none;
    max-height: none;
}

.zeffy-modal {
    width: 600px;
    height: 540px;
    overflow: hidden;
    background: #fff8f0;
    border-radius: 14px;
    transition:
        opacity 0.3s ease-in-out,
        transform 0.3s ease-in-out,
        overlay 0.3s allow-discrete,
        display 0.3s allow-discrete;
    opacity: 0;
    transform: translateY(20px);
}

.zeffy-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.0);
    transition:
        background-color 0.3s ease-in-out,
        overlay 0.3s allow-discrete,
        display 0.3s allow-discrete;
}

.zeffy-modal:open,
.zeffy-modal[open] {
    opacity: 1;
    transform: translateY(0px);
}

.zeffy-modal:open::backdrop,
.zeffy-modal[open]::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

@starting-style {
    .zeffy-modal:open::backdrop,
    .zeffy-modal[open]::backdrop {
        background-color: rgba(0, 0, 0, 0);
    }

    .zeffy-modal:open,
    .zeffy-modal[open] {
        opacity: 0;
        transform: translateY(20px);
    }
}

.zeffy-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.zeffy-spinner-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.zeffy-spinner-wrapper .spinner {
    width: 60px;
    height: 60px;
    border-color: var(--c-bg);
    border-top-color: var(--c-border-sage);
    border-width: 4px;
}

@media (max-width: 768px) {
    .zeffy-modal {
        width: auto;
        height: auto;
        border-radius: 0;
    }
}