html.lamapoll-open {
    overflow: hidden;
}

.lamapoll-dialog {
    box-sizing: border-box;
    width: min(60rem, calc(100% - 2rem));
    height: min(52rem, calc(100dvh - 2rem));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 1.25rem;
    border: 0;
    background: #fff;
    color: #222;
}

.lamapoll-dialog[open] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lamapoll-dialog::backdrop {
    background: rgb(0 0 0 / 65%);
}

.lamapoll-heading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lamapoll-dialog p {
    margin: 0;
    flex-shrink: 0;
}

.lamapoll-dialog .lamapoll-close {
    margin: 0;
    padding: 0.75rem 1rem;
    min-height: 44px;
    border: 2px solid #005f86;
    background: #005f86;
    color: #fff;
    cursor: pointer;
}

.lamapoll-close:focus-visible {
    outline: 3px solid #222;
    outline-offset: 3px;
}

.lamapoll-survey {
    flex: 1 1 auto;
    min-height: 8rem;
    height: 100%;
}

.lamapoll-survey iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.lamapoll-dialog.lamapoll-dialog-dismiss {
    height: fit-content;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}

.lamapoll-dismiss-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.lamapoll-dialog [data-lamapoll-dismiss-options] h2 {
    font-size: 1.25rem;
}

@media (max-width: 40rem) {
    .lamapoll-dialog {
        width: calc(100% - 1rem);
        height: calc(100dvh - 1rem);
        padding: 0.75rem;
    }
}

@media print {
    .lamapoll-dialog {
        display: none !important;
    }
}
