/* Cookie consent banner */
.hg-cookie {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99990;
    width: min(420px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 30px 32px;
    background: var(--wp--preset--color--custom-light-cream, #F2F2EF);
    color: var(--wp--preset--color--custom-text-gray, #424242);
    font-family: var(--wp--preset--font-family--gantari), sans-serif;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}

.hg-cookie.is-visible { opacity: 1; transform: none; }
.hg-cookie[hidden], .hg-cookie [hidden] { display: none !important; }

.hg-cookie__text {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.6;
}

.hg-cookie__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 4px;
}

.hg-cookie__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hg-cookie__btn {
    appearance: none;
    cursor: pointer;
    height: 52px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    transition: background-color .2s, color .2s, border-color .2s;
}

.hg-cookie__btn--outline {
    background: transparent;
    color: var(--wp--preset--color--custom-text-gray, #424242);
    border: 1px solid var(--wp--preset--color--custom-text-gray, #424242);
}

.hg-cookie__btn--outline:hover {
    background: var(--wp--preset--color--custom-text-gray, #424242);
    color: #fff;
}

.hg-cookie__btn--solid {
    background: var(--wp--preset--color--custom-golden, #8A7A28);
    color: #fff;
    border: 1px solid var(--wp--preset--color--custom-golden, #8A7A28);
}

.hg-cookie__btn--solid:hover {
    background: var(--wp--preset--color--custom-dark-violet, #1D1934);
    border-color: var(--wp--preset--color--custom-dark-violet, #1D1934);
}

.hg-cookie__title {
    margin: 0 0 14px;
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: 28px;
    line-height: 1.2;
}

.hg-cookie__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid #DEDBD0;
    cursor: pointer;
}

.hg-cookie__row:last-of-type { border-bottom: 1px solid #DEDBD0; margin-bottom: 20px; }

.hg-cookie__row strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.hg-cookie__row small { display: block; font-size: 13px; line-height: 1.5; color: #6b6b6b; }

.hg-cookie__row input {
    appearance: none;
    flex: 0 0 42px;
    width: 42px;
    height: 24px;
    margin-top: 2px;
    border-radius: 24px;
    background: #CFCBC0;
    position: relative;
    cursor: pointer;
    transition: background-color .2s;
}

.hg-cookie__row input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}

.hg-cookie__row input:checked { background: var(--wp--preset--color--custom-golden, #8A7A28); }
.hg-cookie__row input:checked::after { transform: translateX(18px); }
.hg-cookie__row input:disabled { opacity: .55; cursor: default; }

@media (max-width: 600px) {
    .hg-cookie { left: 16px; bottom: 16px; padding: 24px 22px; }
    .hg-cookie__text { font-size: 15px; }
    .hg-cookie__btn { height: 46px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .hg-cookie { transition: none; }
}
