.hhr-consent[hidden],
.hhr-consent-preferences[hidden] {
    display: none !important;
}

.hhr-consent {
    position: fixed;
    z-index: 10000;
    right: var(--hhr-space-4);
    bottom: var(--hhr-space-4);
    left: var(--hhr-space-4);
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hhr-consent__panel {
    width: min(100%, 48rem);
    padding: var(--hhr-space-5);
    border: 1px solid var(--hhr-color-border);
    border-radius: var(--hhr-radius-card);
    background: var(--hhr-color-white);
    box-shadow: var(--hhr-shadow-raised);
    color: var(--hhr-color-text);
    pointer-events: auto;
}

.hhr-consent__title {
    margin: 0 0 var(--hhr-space-2);
    color: var(--hhr-color-navy);
    font-family: var(--hhr-font-heading);
    font-size: 1.25rem;
    line-height: 1.25;
}

.hhr-consent__text {
    margin: 0;
    color: var(--hhr-color-text);
    font-family: var(--hhr-font-body);
    line-height: 1.55;
}

.hhr-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hhr-space-3);
    align-items: center;
    margin-top: var(--hhr-space-4);
}

.hhr-consent__button,
.hhr-consent-preferences {
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--hhr-radius-button);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hhr-consent__button--accept {
    border: 1px solid var(--hhr-color-blue);
    background: var(--hhr-color-blue);
    color: var(--hhr-color-white);
}

.hhr-consent__button--reject {
    border: 1px solid var(--hhr-color-border);
    background: var(--hhr-color-white);
    color: var(--hhr-color-navy);
}

.hhr-consent__privacy-link {
    color: var(--hhr-color-blue-dark);
    font-weight: 700;
}

.hhr-consent-preferences {
    position: fixed;
    z-index: 9999;
    left: var(--hhr-space-4);
    bottom: var(--hhr-space-4);
    border: 1px solid var(--hhr-color-border);
    background: var(--hhr-color-white);
    box-shadow: var(--hhr-shadow-card);
    color: var(--hhr-color-navy);
}

.hhr-consent__button:focus-visible,
.hhr-consent-preferences:focus-visible,
.hhr-consent__privacy-link:focus-visible {
    outline: 3px solid var(--hhr-color-focus);
    outline-offset: 3px;
}

@media (max-width: 40rem) {
    .hhr-consent {
        right: var(--hhr-space-2);
        bottom: var(--hhr-space-2);
        left: var(--hhr-space-2);
    }

    .hhr-consent__panel {
        padding: var(--hhr-space-3);
    }

    .hhr-consent__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--hhr-space-2);
        align-items: stretch;
        margin-top: var(--hhr-space-3);
    }

    .hhr-consent__button {
        width: 100%;
        padding: 0.5rem 0.35rem;
        font-size: 0.8125rem;
        line-height: 1.2;
    }

    .hhr-consent__privacy-link {
        grid-column: 1 / -1;
        justify-self: center;
        align-self: center;
        padding: var(--hhr-space-1) var(--hhr-space-2);
    }

    .hhr-consent-preferences {
        position: static;
        display: block;
        margin: var(--hhr-space-2);
        margin-bottom: calc(var(--hhr-space-2) + env(safe-area-inset-bottom));
        min-height: 2.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}
