.certa-cookie-panel[hidden],
.certa-cookie-panel [hidden],
.certa-cookie-map [hidden],
[data-certa-open][hidden] {
    display: none !important;
}

.certa-cookie-panel {
    position: fixed;
    z-index: 10000;
    inset: auto 18px max(18px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: center;
    gap: 18px 28px;
    width: min(calc(100% - 36px), 850px);
    max-height: calc(100dvh - 36px);
    margin-inline: auto;
    padding: 24px 26px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #d7d9ca;
    border-top: 3px solid var(--certa-gold, #b6aa83);
    border-radius: 18px;
    background: var(--gen-paper, #fcfaf5);
    color: var(--certa-ink, #30392c);
    box-shadow: 0 12px 45px #26372f38;
    font: 400 16px/1.48 var(--certa-sans, 'Source Sans 3', Arial, sans-serif);
}

body .certa-cookie-panel h2 {
    margin: 0 0 6px;
    color: var(--certa-ink, #30392c);
    font: 500 clamp(24px, 4.5vw, 32px)/1.18 var(--certa-serif, Lora, Georgia, serif);
    letter-spacing: -.035em;
}

.certa-cookie-panel p {
    margin: 0;
}

.certa-cookie-panel .certa-cookie-panel__detail {
    margin-top: 8px;
    font-size: 14px;
}

.certa-cookie-panel a,
.certa-cookie-map a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.certa-cookie-panel__controls {
    display: grid;
    gap: 8px;
}

.certa-cookie-panel__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body .certa-cookie-button {
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid #46513a;
    border-radius: 999px;
    background: #46513a;
    color: #fff;
    font: 600 15px/1.25 var(--certa-sans, 'Source Sans 3', Arial, sans-serif);
    cursor: pointer;
}

body .certa-cookie-button:hover {
    background: #30392c;
}

body .certa-cookie-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

body .certa-cookie-link:hover {
    color: inherit;
    background: transparent;
    text-decoration-thickness: 2px;
}

.certa-cookie-panel__options {
    display: grid;
    gap: 8px;
    margin: 0;
}

body .certa-cookie-custom {
    justify-self: center;
    min-height: 36px;
    padding-inline: 12px;
}

.certa-cookie-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--gen-sage, #ececdf);
    cursor: pointer;
}

.certa-cookie-option input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #46513a;
}

.certa-cookie-map__notice {
    display: grid;
    place-content: center;
    gap: 8px;
    min-height: 210px;
    padding: 20px;
    border: 1px solid #d7d9ca;
    border-radius: 14px;
    background: var(--gen-sage, #ececdf);
    text-align: center;
}

.certa-cookie-map__notice p {
    margin: 0;
}

.certa-cookie-map__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    margin-top: 4px;
}

body > .certa-cookie-reopen {
    display: block;
    margin: 12px auto;
    color: var(--gen-olive, #46513a);
}

@media (max-width: 620px) {
    .certa-cookie-panel {
        inset: auto 12px max(12px, env(safe-area-inset-bottom));
        grid-template-columns: 1fr;
        gap: 12px;
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
        padding: 17px;
        font-size: 15px;
    }
}
