#benedent-popup:not([open]) { display: none; }
#benedent-popup[open] { display: block; }
#benedent-popup {
    --bdo-bg: #fff;
    --bdo-title: #326737;
    --bdo-text: #263b2b;
    --bdo-detail: #edb536;
    --bdo-button: #386d3e;
    --bdo-button-text: white;
    position: fixed;
    inset: 0;
    width: min(29rem, calc(100% - 2rem));
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 20px;
    color: var(--bdo-text);
    background: var(--bdo-bg);
    box-shadow: 0 20px 70px rgba(23,52,29,.24);
    text-align: left;
    font-family: inherit;
    overflow: auto;
    overscroll-behavior: contain;
}
#benedent-popup.bdo-hours {
    --bdo-bg: #346637; --bdo-title: #fff; --bdo-text: #fff;
    --bdo-button: #ffca54; --bdo-button-text: #243c27;
}
#benedent-popup.bdo-acute {
    --bdo-bg: #f2f8ee; --bdo-title: #2d5833; --bdo-detail: #63905d;
}
#benedent-popup::backdrop { background: rgba(20,42,27,.53); }
/* Záloha pre prehliadače bez podpory <dialog>/showModal(): vlastné pozadie a vrstva. */
#benedent-popup.bdo-fallback { position: fixed; z-index: 2147483000; box-shadow: 0 0 0 100vmax rgba(20,42,27,.53), 0 20px 70px rgba(23,52,29,.24); }
#benedent-popup .bdo-panel { position: relative; padding: clamp(24px, 6vw, 40px); }
#benedent-popup .bdo-panel::before {
    content: ''; display: block; width: 44px; height: 4px;
    border-radius: 8px; background: var(--bdo-detail); margin: 2px 0 20px;
}
#benedent-popup #bdo-title {
    color: var(--bdo-title); font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(26px, 5vw, 35px); line-height: 1.14;
    letter-spacing: -.025em; font-weight: 600; margin: 0 12px 14px 0;
    overflow-wrap: anywhere; text-transform: none;
}
#benedent-popup #bdo-message {
    color: var(--bdo-text); font: inherit; font-size: 17px; line-height: 1.55;
    margin: 0; white-space: pre-line; overflow-wrap: anywhere;
}
#benedent-popup .bdo-close {
    position: absolute; right: 8px; top: 6px;
    display: grid; place-items: center; width: 44px; height: 44px;
    padding: 0; border: none; border-radius: 0; background: transparent; outline: none; box-shadow: none;
    color: var(--bdo-text); font: 28px/1 Arial, sans-serif; cursor: pointer;
}
#benedent-popup .bdo-cta {
    display: inline-block; box-sizing: border-box; min-height: 44px; max-width: 100%;
    margin-top: 24px; padding: 10px 20px; border-radius: 30px;
    background: var(--bdo-button); color: var(--bdo-button-text); font: inherit;
    font-weight: 600; line-height: 24px; text-decoration: none; overflow-wrap: anywhere;
}
#benedent-popup .bdo-cta:hover { text-decoration: underline; }
#benedent-popup .bdo-close:focus, #benedent-popup .bdo-close:focus-visible { outline: none; box-shadow: none; }
#benedent-popup .bdo-cta:focus-visible { outline: 2px solid var(--bdo-title); outline-offset: 2px; }
html.bdo-modal-open { overflow: hidden; }
