.hb-cookie-root[hidden],
.hb-cookie-root:not(.is-open) {
    display: none !important;
}

.hb-cookie-root {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(42rem, calc(100vw - 2rem));
    z-index: 10050;
}

.hb-cookie-banner {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(45, 90, 61, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 1.25rem 1.35rem;
    font-family: "Source Sans 3", system-ui, sans-serif;
    color: #2c3e2d;
}

.hb-cookie-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d5a3d;
}

.hb-cookie-lead {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hb-cookie-policy {
    margin: 0 0 1rem;
    font-size: 0.88rem;
}

.hb-cookie-policy a {
    color: #2d5a3d;
}

.hb-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.hb-cookie-btn {
    border: 0;
    border-radius: 8px;
    padding: 0.55rem 0.95rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.hb-cookie-btn-primary {
    background: #2d5a3d;
    color: #fff;
}

.hb-cookie-btn-primary:hover {
    background: #244a32;
}

.hb-cookie-btn-secondary {
    background: #eef3ef;
    color: #2d5a3d;
}

.hb-cookie-btn-secondary:hover {
    background: #e2ebe4;
}

.hb-cookie-btn-ghost {
    background: transparent;
    color: #5a6b5c;
}

.hb-cookie-btn-ghost:hover {
    background: #f3f6f4;
}

.hb-cookie-panel {
    margin-top: 0.25rem;
}

.hb-cookie-fieldset {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.hb-cookie-option {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f7faf8;
    cursor: pointer;
}

.hb-cookie-option-disabled {
    opacity: 0.75;
    cursor: default;
}

.hb-cookie-option input {
    margin-top: 0.2rem;
    accent-color: #2d5a3d;
}

.hb-cookie-option strong {
    display: block;
    font-size: 0.95rem;
}

.hb-cookie-option small {
    display: block;
    margin-top: 0.15rem;
    color: #5a6b5c;
    line-height: 1.4;
}

.hb-cookie-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 10040;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.hb-cookie-fab:hover {
    background: #f7faf8;
}

@media (max-width: 540px) {
    .hb-cookie-root {
        bottom: 0.75rem;
        width: calc(100vw - 1.5rem);
    }

    .hb-cookie-actions {
        flex-direction: column;
    }

    .hb-cookie-btn {
        width: 100%;
    }
}
