.jg-cookie__panel[hidden], .jg-cookie__footer[hidden], .jg-cookie__settings[hidden] {
    display: none;
}

.jg-cookie__panel {
    position: fixed;
    z-index: 10000;
    inset-inline: 0;
    inset-block-end: max(16px, env(safe-area-inset-bottom));
    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    margin: 0 auto;
    overflow-y: auto;
    padding: clamp(16px, 4vw, 30px);
    border: 1px solid #8fa18d;
    border-radius: 14px;
    background: #f8f6f1;
    box-shadow: 0 8px 34px #162c1d26;
    color: #27362d;
    font: inherit;
    line-height: 1.45;
    animation: jg-cookie-enter .25s ease-out both;
}

@keyframes jg-cookie-enter {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.jg-cookie__panel h2 {
    margin: 0 38px 8px 0;
    color: #3e5145;
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.2;
}

.jg-cookie__panel p { margin: 0 0 12px; }
.jg-cookie__panel button, .jg-cookie__footer { font: inherit; cursor: pointer; }

.jg-cookie__panel .jg-cookie__close {
    position: absolute;
    inset-inline-end: 9px;
    inset-block-start: 9px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #3e5145;
    font-size: 27px;
    line-height: 1;
}

.jg-cookie__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-block: 16px 12px;
}

.jg-cookie__actions button, .jg-cookie__settings button {
    min-height: 44px;
    padding: 8px;
    border: 1px solid #3e5145;
    border-radius: 8px;
    background: #3e5145;
    color: #f8f6f1;
    font-weight: 600;
    white-space: normal;
}

.jg-cookie__actions button:hover, .jg-cookie__settings button:hover { background: #293e31; }

.jg-cookie__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 22px;
}

.jg-cookie__links button, .jg-cookie__links a, .jg-cookie__footer {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.jg-cookie__footer { margin: 6px auto 0; }
.jg-footer .jg-footer__column--contact:has(> .jg-cookie__footer) {
    display: flex;
    flex-direction: column;
}
.jg-footer .jg-footer__column--contact > .jg-cookie__footer {
    align-self: var(--jg-footer-cell-align, start);
    margin: 6px 0 0;
    font-weight: 600;
}

@media (min-width: 801px) {
    .jg-footer .jg-footer__column--contact:has(> .jg-cookie__footer) {
        align-self: stretch;
    }
    .jg-footer .jg-footer__column--contact > .jg-cookie__footer {
        align-items: flex-end;
        margin-block-start: auto;
        padding-block: 0;
    }
}

body > .jg-cookie > .jg-cookie__footer { display: flex; color: #3e5145; }
body > .jg-cookie > .jg-cookie__footer[hidden] { display: none; }

.jg-cookie__settings {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #c8d3c7;
}

.jg-cookie__settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.jg-cookie__panel :is(button, a, input):focus-visible, .jg-cookie__footer:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 400px) {
    .jg-cookie__panel {
        width: calc(100% - 20px);
        inset-block-end: max(10px, env(safe-area-inset-bottom));
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jg-cookie__panel { animation: none; }
}
