.jp-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 10000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 880px;
    margin: 0 auto;
    padding: 18px 52px 18px 20px;
    color: #1f2937;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
    font-family: "Space Grotesk", sans-serif;
}

.jp-consent[hidden],
.jp-consent__close[hidden] {
    display: none;
}

.jp-consent__copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.jp-consent__copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.jp-consent__copy a {
    color: var(--brand-blue);
    font-weight: 700;
}

.jp-consent__status {
    margin-top: 8px !important;
    color: var(--brand-red);
    font-weight: 700;
}

.jp-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.jp-consent__button,
.jp-consent-settings,
.jp-consent__close {
    font: inherit;
    cursor: pointer;
}

.jp-consent__button {
    flex: 0 0 auto;
    width: max-content;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    color: #000;
    background: #fff;
    border: 1px solid var(--brand-blue);
}

.jp-consent__button:focus-visible,
.jp-consent-settings:focus-visible,
.jp-consent__close:focus-visible {
    outline: 3px solid var(--brand-yellow-light);
    outline-offset: 2px;
}

.jp-consent__close {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 7px;
    color: #475569;
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 700;
}

.jp-consent-settings {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jp-clarity-diagnostic {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10001;
    display: grid;
    gap: 4px;
    max-width: min(560px, calc(100vw - 24px));
    padding: 10px 12px;
    color: #1f2937;
    background: var(--brand-yellow-light);
    border: 1px solid var(--brand-yellow);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.jp-clarity-diagnostic strong {
    font-size: 13px;
}

@media (max-width: 720px) {
    .jp-consent {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 20px;
    }

}

@media (max-width: 420px) {
    .jp-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }
}
