.hb-cookie-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hb-cookie-modal {
    background: #ffffff;
    color: #1f2937;
    border-radius: 0.75rem;
    max-width: 480px;
    width: 100%;
    padding: 1.75rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045), 0 2px 6px rgba(15, 23, 42, 0.025);
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.hb-cookie-modal h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

.hb-cookie-modal p {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
}

.hb-cookie-modal a {
    color: var(--be-primary, #0f766e);
    text-decoration: underline;
}

.hb-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hb-cookie-btn {
    flex: 1 1 auto;
    min-width: 130px;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid var(--be-primary, #0f766e);
    background: #fff;
    color: var(--be-primary, #0f766e);
    transition: background 0.15s ease, color 0.15s ease;
}

.hb-cookie-btn:hover {
    background: rgba(15, 118, 110, 0.08);
}

.hb-cookie-btn--primary {
    background: var(--be-primary, #0f766e);
    color: #fff;
}

.hb-cookie-btn--primary:hover {
    background: var(--be-link-hover, #0d5c56);
}

.hb-cookie-prefs {
    display: none;
}

.hb-cookie-prefs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.hb-cookie-prefs-row:last-of-type {
    border-bottom: none;
}

.hb-cookie-prefs-row strong {
    display: block;
    font-size: 0.88rem;
    color: #111827;
}

.hb-cookie-prefs-row span {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.hb-cookie-prefs-row input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    accent-color: var(--be-primary, #0f766e);
}

@media (max-width: 480px) {
    .hb-cookie-modal {
        padding: 1.25rem;
    }

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