/* Cookie banner + consent placeholders (moved from footer.php) */
#demo1-cookiebanner-container {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.22);
}
#demo1-cookiebanner-container.demo1-cookie-hidden {
    display: none;
}
.demo1-cookiebanner {
    width: min(600px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    overflow: hidden;
    display: grid;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    color: #222;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.19) 0 10px 20px, rgba(0, 0, 0, 0.23) 0 6px 6px;
    font-family: Arial, Helvetica, sans-serif;
}
.demo1-cookie-header {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
}
.demo1-cookie-title {
    justify-self: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}
.demo1-cookie-close {
    justify-self: end;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.demo1-cookie-body {
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}
.demo1-cookie-body::-webkit-scrollbar {
    width: 5px;
}
.demo1-cookie-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
.demo1-cookie-message {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.5;
}
.demo1-cookie-message p {
    margin: 0 0 10px;
}
.demo1-cookie-divider {
    height: 1px;
    margin-inline: -20px;
    background: rgba(0, 0, 0, 0.08);
}
.demo1-cookie-categories {
    display: grid;
    gap: 10px;
}
.demo1-cookie-categories[hidden] {
    display: none;
}
.demo1-cookie-category {
    background: rgba(239, 239, 239, 0.5);
}
.demo1-cookie-category summary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    list-style: none;
}
.demo1-cookie-category summary::-webkit-details-marker {
    display: none;
}
.demo1-cookie-category-title {
    font-size: 14px;
    font-weight: 500;
}
.demo1-cookie-active {
    color: green;
    font-size: 12px;
    font-weight: 500;
}
.demo1-cookie-category p {
    margin: 0;
    padding: 0 10px 10px;
    font-size: 12px;
    line-height: 1.5;
}
.demo1-cookie-switch {
    position: relative;
    width: 28px;
    height: 15px;
    border-radius: 999px;
    background: #f8be2e;
}
.demo1-cookie-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 4px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #fff;
    transition: left 0.2s ease;
}
.demo1-cookie-category[open] .demo1-cookie-switch {
    background: #61ce71;
}
.demo1-cookie-category[open] .demo1-cookie-switch::after {
    left: 14px;
}
.demo1-cookie-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}
.demo1-cookie-links a {
    color: #1e73be;
    text-decoration: underline;
}
.demo1-cookie-buttons {
    display: flex;
    gap: 10px;
}
.demo1-cookie-buttons button {
    min-height: 45px;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    white-space: nowrap;
}
.demo1-cookie-accept {
    border: 1px solid #333;
    background: #333;
    color: #fff;
}
.demo1-cookie-deny,
.demo1-cookie-options {
    border: 1px solid #333;
    background: #fff;
    color: #333;
}
@media (max-width: 768px) {
    .demo1-cookie-buttons {
        flex-direction: column;
    }
}
@media (max-width: 425px) {
    .demo1-cookie-header {
        grid-template-columns: 1fr auto;
    }
    .demo1-cookie-header > div:first-child,
    .demo1-cookie-title {
        display: none;
    }
}

/* Category rows with a real toggle */
.demo1-cookie-category-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 0;
    cursor: default;
}
label.demo1-cookie-category-head {
    cursor: pointer;
}
.demo1-cookie-toggle {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 34px;
    height: 18px;
    margin: 0;
    border-radius: 999px;
    background: #c9c9c9;
    cursor: pointer;
    transition: background 0.2s ease;
}
.demo1-cookie-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    transition: left 0.2s ease;
}
.demo1-cookie-toggle:checked {
    background: #61ce71;
}
.demo1-cookie-toggle:checked::after {
    left: 18px;
}
.demo1-cookie-toggle:focus-visible,
.demo1-cookie-buttons button:focus-visible,
.demo1-cookie-close:focus-visible {
    outline: 2px solid #1e73be;
    outline-offset: 2px;
}

/* Placeholder shown instead of external embeds until consent */
.demo1-consent-embed {
    width: 100%;
    height: 100%;
}
.demo1-consent-embed.is-loaded {
    display: contents;
}
.demo1-consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 280px;
    padding: 28px 22px;
    text-align: center;
    background: #fdfbf7;
    border: 1px dashed rgba(67, 40, 15, 0.25);
    border-radius: 1.25rem;
    color: #43280f;
}
.demo1-consent-embed-map .demo1-consent-placeholder {
    border-radius: 0;
    border: 0;
}
.demo1-consent-placeholder > i {
    font-size: 28px;
    color: #3f7f12;
}
.demo1-consent-placeholder-title {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 700;
}
.demo1-consent-placeholder-text {
    max-width: 440px;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5b5b5b;
}
.demo1-consent-placeholder-btn {
    margin-top: 6px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: #3f7f12;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.demo1-consent-placeholder-btn:hover {
    background: #43280f;
}
.demo1-consent-placeholder-link {
    padding: 4px;
    border: 0;
    background: none;
    color: #43280f;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
.demo1-footer-cookie-settings {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

/* Contact map: keep the placeholder clear of the address card overlaid bottom-left */
.demo1-consent-embed-map .demo1-consent-placeholder {
    justify-content: flex-start;
    padding-top: 22px;
    gap: 6px;
}
.demo1-consent-embed-map .demo1-consent-placeholder > i,
.demo1-consent-embed-map .demo1-consent-placeholder-link {
    display: none;
}
.demo1-consent-embed-map .demo1-consent-placeholder-text {
    font-size: 12px;
    order: 3;
}
.demo1-consent-embed-map .demo1-consent-placeholder-title {
    order: 1;
    font-size: 18px;
}
.demo1-consent-embed-map .demo1-consent-placeholder-btn {
    order: 2;
    margin-top: 0;
}
@media (min-width: 1024px) {
    .demo1-consent-embed-map .demo1-consent-placeholder {
        justify-content: center;
        align-items: center;
        padding: 28px 40px 28px 460px;
        gap: 10px;
    }
    .demo1-consent-embed-map .demo1-consent-placeholder > i,
    .demo1-consent-embed-map .demo1-consent-placeholder-link {
        display: inline-block;
    }
    .demo1-consent-embed-map .demo1-consent-placeholder > * {
        order: 0;
    }
    .demo1-consent-embed-map .demo1-consent-placeholder-title {
        font-size: 20px;
    }
    .demo1-consent-embed-map .demo1-consent-placeholder-btn {
        margin-top: 6px;
    }
}
