/* Karlaby Kro - strictly scoped to the plugin markup. */
.kbc-theme {
    --kbc-green: #263126;
    --kbc-olive: #3e4936;
    --kbc-ink: #293129;
    --kbc-muted: #586052;
    --kbc-paper: #f8f6ef;
    --kbc-card: #fffefa;
    --kbc-line: #dfdfd2;
    color: var(--kbc-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    box-sizing: border-box;
}
.kbc-theme *, .kbc-theme *::before, .kbc-theme *::after { box-sizing: border-box; }
.kbc-popup:not([open]), .kbc-backdrop[hidden] { display: none !important; }
.kbc-popup {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(890px, calc(100% - 40px));
    max-width: 890px;
    max-height: calc(100% - 40px);
    max-height: calc(100dvh - 40px);
    height: fit-content;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--kbc-line);
    border-radius: 3px;
    background: var(--kbc-paper);
    box-shadow: 0 20px 90px rgba(0, 0, 0, .30);
    z-index: 2147483001;
    scrollbar-color: #a2a79a var(--kbc-paper);
}
.kbc-popup::backdrop, .kbc-backdrop { background: rgba(15, 23, 17, .70); }
.kbc-backdrop { position: fixed; inset: 0; z-index: 2147483000; }
html.kbc-popup-open { overflow: hidden; }
.kbc-popup .kbc-popup-inner { position: relative; padding: 37px 36px 24px; }
.kbc-theme .kbc-header { position: relative; display: block; margin: 0 auto 25px; padding: 0; max-width: 720px; text-align: center; background: none; }
.kbc-popup .kbc-header { padding: 0 16px; }
.kbc-theme .kbc-eyebrow { margin: 0 0 10px; padding: 0; color: var(--kbc-olive); font-size: 11px; font-weight: 600; letter-spacing: .20em; text-transform: uppercase; line-height: 1.4; }
.kbc-theme .kbc-title, .kbc-theme .kbc-card-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: normal;
    font-weight: 400;
    color: var(--kbc-green);
    letter-spacing: -.025em;
    text-transform: none;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
}
.kbc-theme .kbc-title { font-size: clamp(27px, 4vw, 42px); line-height: 1.14; }
.kbc-theme .kbc-intro { max-width: 670px; margin: 15px auto 0; color: var(--kbc-muted); font-size: 15px; }
.kbc-theme .kbc-copy { overflow-wrap: anywhere; }
.kbc-theme .kbc-copy p { margin: 0 0 .8em; padding: 0; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.kbc-theme .kbc-copy p:last-child { margin-bottom: 0; }
.kbc-theme .kbc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.kbc-theme .kbc-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--kbc-line); border-radius: 2px; background: var(--kbc-card); text-align: left; }
.kbc-theme .kbc-image-wrap { aspect-ratio: 16/9; overflow: hidden; background: #e9e8de; }
.kbc-theme .kbc-image { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; border-radius: 0; margin: 0; }
.kbc-theme .kbc-card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.kbc-theme .kbc-card-title { font-size: clamp(23px, 2.7vw, 27px); line-height: 1.17; }
.kbc-theme .kbc-card .kbc-copy { font-size: 15px; color: var(--kbc-ink); line-height: 1.6; }
.kbc-theme .kbc-details { width: 100%; margin: 0; padding: 0; }
.kbc-theme .kbc-details summary { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; cursor: pointer; color: var(--kbc-olive); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; font-size: 14px; list-style: none; }
.kbc-theme .kbc-details summary::-webkit-details-marker { display: none; }
.kbc-theme .kbc-details summary::after { content: '+'; text-decoration: none; display: inline-block; font-size: 18px; line-height: 1; }
.kbc-theme .kbc-details[open] summary::after { content: '\2212'; }
.kbc-theme .kbc-details-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--kbc-line); }
.kbc-theme a.kbc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 44px;
    margin: auto 0 0;
    padding: 11px 17px;
    background: var(--kbc-green);
    color: #fff !important;
    border: 1px solid var(--kbc-green);
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-transform: none;
    text-decoration: none !important;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background-color .15s ease, border-color .15s ease;
}
.kbc-theme a.kbc-cta:hover { background: var(--kbc-olive); border-color: var(--kbc-olive); color: #fff !important; }
.kbc-theme .kbc-contact { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; padding: 0; text-align: center; font-size: 14px; line-height: 1.45; }
.kbc-theme .kbc-contact a { color: var(--kbc-green); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.kbc-popup .kbc-close-bar { position: sticky; top: 0; height: 0; display: flex; justify-content: flex-end; z-index: 3; pointer-events: none; }
.kbc-popup button.kbc-close {
    position: relative;
    right: 7px;
    top: 7px;
    flex: none;
    pointer-events: auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0 0 3px;
    color: var(--kbc-green);
    background: var(--kbc-paper);
    border: 1px solid var(--kbc-line);
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    z-index: 1;
}
.kbc-popup button.kbc-close:hover { border-color: var(--kbc-line); background: #eeeee4; }
.kbc-theme :is(button, a, summary):focus-visible { outline: 2px solid #68784b; outline-offset: 3px; }
.kbc-inline { width: 100%; max-width: 1160px; margin: 0 auto; padding: clamp(24px, 5vw, 60px); background: var(--kbc-paper); }
.kbc-inline .kbc-grid { gap: 24px; }
.kbc-inline .kbc-card-content { padding: clamp(20px, 3vw, 32px); }
@media (max-width: 620px) {
    .kbc-popup { width: calc(100% - 20px); max-height: calc(100% - 20px); max-height: calc(100dvh - 20px); }
    .kbc-popup .kbc-popup-inner { padding: 32px 16px 20px; }
    .kbc-popup .kbc-header { padding: 8px 8px 0; }
    .kbc-popup button.kbc-close { top: 4px; right: 4px; }
    .kbc-theme .kbc-grid { grid-template-columns: 1fr; gap: 12px; }
    .kbc-theme .kbc-card-content { padding: 19px; gap: 10px; }
    .kbc-theme .kbc-title { font-size: 30px; }
    .kbc-theme .kbc-card-title { font-size: 24px; }
    .kbc-theme .kbc-contact { gap: 8px 16px; }
    .kbc-inline { padding: 25px 16px; }
}
@media (prefers-reduced-motion: reduce) { .kbc-theme a.kbc-cta { transition: none; } }
