html.website-popup-open { overflow: hidden; }
.website-popup {
    box-sizing: border-box;
    width: min(620px, calc(100vw - 32px));
    max-width: 620px;
    max-height: calc(100dvh - 40px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fffdf7;
    color: #1c3c1c;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
    overflow: auto;
    overscroll-behavior: contain;
    font-family: inherit;
}
.website-popup::backdrop { background: rgba(16, 30, 16, .65); }
.website-popup__close {
    position: sticky; top: 12px; margin: 12px 12px -52px auto;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-width: 44px; padding: 0;
    border: 1px solid #d5ddce; border-radius: 50%; background: #fffdf7;
    color: #1c3c1c; font-size: 30px; line-height: 1; cursor: pointer; z-index: 1;
}
.website-popup__content { padding: 38px 36px 32px; }
.website-popup__title { color: #1c3c1c; margin: 0 40px 20px 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.2; overflow-wrap: anywhere; }
.website-popup__image { display: block; width: 100%; max-height: 300px; object-fit: contain; border-radius: 8px; margin: 0 0 20px; }
.website-popup__text { line-height: 1.65; overflow-wrap: anywhere; }
.website-popup__text p { line-height: inherit; }
.website-popup__text a { color: #30552b; text-decoration: underline; }
.website-popup__text .ql-align-center { text-align: center; }
.website-popup__text .ql-align-right { text-align: right; }
.website-popup__text .ql-align-justify { text-align: justify; }
.website-popup__text .ql-indent-1 { padding-left: 1.5em; }
.website-popup__text .ql-indent-2 { padding-left: 3em; }
.website-popup__text .ql-indent-3 { padding-left: 4.5em; }
.website-popup__text .ql-indent-4 { padding-left: 6em; }
.website-popup__action {
    display: inline-block; margin-top: 12px; padding: 12px 22px; border-radius: 7px;
    background: #1c3c1c; color: #fff !important; text-decoration: none;
    line-height: 1.4; font-weight: 600; overflow-wrap: anywhere;
}
.website-popup__action:hover { background: #30552b; }
.website-popup :focus-visible, .popup-test-toolbar :focus-visible { outline: 3px solid #a05a0d; outline-offset: 3px; }
.popup-test-toolbar {
    position: relative; z-index: 1000; display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center; justify-content: center; padding: 14px 20px;
    background: #fff0c4; color: #382b10; font: 15px/1.5 system-ui, sans-serif;
    border-bottom: 2px solid #dfc785;
}
.popup-test-toolbar button { border: 1px solid #705c25; border-radius: 5px; padding: 6px 12px; background: #fff; color: #382b10; cursor: pointer; }
.popup-test-toolbar button[aria-pressed="true"] { background: #382b10; color: #fff; }
.website-popup[data-preview-size="mobile"] { width: min(390px, calc(100vw - 32px)); }
.website-popup[data-preview-size="mobile"] .website-popup__content { padding: 30px 22px 24px; }
@media (max-width: 600px) {
    .website-popup { max-height: calc(100dvh - 24px); }
    .website-popup__content { padding: 30px 22px 24px; }
    .website-popup__image { max-height: 230px; }
}
