.pb-cookie-banner,
.pb-cookie-modal {
    --pb-consent-text: var(--color-neutral-100, #171717);
    --pb-consent-muted: var(--color-neutral-70, #666);
    --pb-consent-border: var(--color-neutral-40, #d7d7d7);
    --pb-consent-bg: var(--color-neutral-00, #fff);
    font-family: inherit;
    color: var(--pb-consent-text);
}

.pb-cookie-banner[hidden],
.pb-cookie-modal[hidden] {
    display: none !important;
}

.pb-cookie-banner {
    position: fixed;
    z-index: 2147483000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 46px 14px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--pb-consent-border);
    border-radius: 14px;
    background: var(--pb-consent-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.45;
}

.pb-cookie-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.pb-cookie-copy strong {
    font-size: 14px;
}

.pb-cookie-copy span,
.pb-cookie-copy a,
.pb-cookie-policy-links,
.pb-cookie-policy-links a {
    font-size: 13px;
}

.pb-cookie-copy a,
.pb-cookie-policy-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pb-cookie-actions,
.pb-cookie-panel-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.pb-cookie-button,
button.pb-cookie-preferences {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.pb-cookie-button {
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--pb-consent-text);
    border-radius: 8px;
    background: var(--pb-consent-bg);
    color: var(--pb-consent-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
}

.pb-cookie-button:hover,
.pb-cookie-button:focus-visible {
    background: #f1f1f1;
}

.pb-cookie-close,
.pb-cookie-panel-close {
    appearance: none;
    position: absolute !important;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pb-consent-text);
    cursor: pointer;
    font: 400 25px/1 Arial, sans-serif;
    transform: none !important;
}

.pb-cookie-close:hover,
.pb-cookie-close:focus,
.pb-cookie-close:active,
.pb-cookie-panel-close:hover,
.pb-cookie-panel-close:focus,
.pb-cookie-panel-close:active {
    transform: none !important;
}

.pb-cookie-close {
    top: 8px !important;
    right: 10px !important;
    width: 32px;
    height: 32px;
}

.pb-cookie-modal {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
}

.pb-cookie-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .38);
}

.pb-cookie-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    padding: 26px;
    overflow: auto;
    border-radius: 16px;
    background: var(--pb-consent-bg);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
    box-sizing: border-box;
}

.pb-cookie-panel-close {
    top: 14px !important;
    right: 14px !important;
    width: 34px;
    height: 34px;
}

.pb-cookie-panel h2 {
    margin: 0 40px 8px 0;
    color: var(--pb-consent-text);
    font-size: 24px;
    line-height: 1.25;
}

.pb-cookie-panel > p {
    margin: 0 0 18px;
    color: var(--pb-consent-muted);
    font-size: 14px;
    line-height: 1.5;
}

.pb-cookie-category {
    display: flex;
    min-height: 68px;
    margin-top: 10px;
    padding: 13px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--pb-consent-border);
    border-radius: 10px;
    box-sizing: border-box;
}

.pb-cookie-category div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pb-cookie-category strong {
    font-size: 14px;
}

.pb-cookie-category small {
    color: var(--pb-consent-muted);
    font-size: 12px;
    line-height: 1.35;
}

.pb-cookie-category input {
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color-primary-50, #00bfa6);
}

.pb-cookie-always-on {
    color: var(--pb-consent-muted);
    font-size: 12px;
    white-space: nowrap;
}

.pb-cookie-policy-links {
    display: flex;
    margin-top: 15px !important;
    gap: 8px;
}

.pb-cookie-panel-actions {
    margin-top: 20px;
    justify-content: flex-end;
}

button.pb-cookie-preferences {
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    text-decoration: none;
}

#wrapper .text--caption > button.pb-cookie-preferences.link {
    display: inline;
    width: auto;
    margin: 0;
    color: var(--color-accent-20);
    text-decoration: underline;
}

footer button.pb-cookie-preferences {
    color: var(--color-neutral-40, #b8b8b8);
}

footer button.pb-cookie-preferences:hover,
footer button.pb-cookie-preferences:focus-visible {
    text-decoration: none;
}

body.pb-cookie-preferences-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .pb-cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 14px 42px 14px 14px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .pb-cookie-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .pb-cookie-button {
        padding-right: 8px;
        padding-left: 8px;
    }

    .pb-cookie-panel {
        padding: 22px 18px;
    }

    .pb-cookie-panel-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-cookie-banner,
    .pb-cookie-modal {
        scroll-behavior: auto;
    }
}
