:root {
    --pp-navy: #252c4b;
    --pp-dark: #1c223b;
    --pp-gold: #f7b23a;
    --pp-text: #1f2433;
    --pp-muted: #667085;
    --pp-line: #e5e7eb;
    --pp-bg: #fff;
    --pp-soft: #f5f6f8
}

.pp-consent-lock {
    overflow: hidden
}

.pp-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    background: rgba(17, 24, 39, .56);
    backdrop-filter: blur(7px)
}

.pp-consent-backdrop.is-visible {
    display: block
}

.pp-consent {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 99999;
    width: min(920px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    transform: translateX(-50%) translateY(24px);
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(37, 44, 75, .12);
    border-radius: 22px;
    background: var(--pp-bg);
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
    transition: .18s ease
}

.pp-consent.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible
}

.pp-consent-inner {
    padding: 30px
}

.pp-consent-header {
    display: flex;
    align-items: flex-start;
    gap: 18px
}

.pp-consent-logo {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: var(--pp-navy)
}

.pp-consent-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pp-consent-copy {
    flex: 1
}

.pp-consent-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--pp-gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase
}

.pp-consent h2 {
    margin: 0 0 10px;
    color: var(--pp-dark);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.15
}

.pp-consent p {
    margin: 0;
    color: var(--pp-muted);
    font-size: .98rem;
    line-height: 1.7
}

.pp-consent a {
    color: var(--pp-navy);
    font-weight: 700;
    text-underline-offset: 3px
}

.pp-consent-settings {
    display: none;
    margin-top: 24px;
    border-top: 1px solid var(--pp-line);
    padding-top: 18px
}

.pp-consent-settings.is-open {
    display: block
}

.pp-consent-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--pp-line)
}

.pp-consent-category:last-child {
    border-bottom: 0
}

.pp-consent-category h3 {
    margin: 0 0 4px;
    color: var(--pp-text);
    font-size: 1rem
}

.pp-consent-category p {
    grid-column: 1;
    font-size: .9rem;
    line-height: 1.55
}

.pp-consent-required {
    color: var(--pp-navy);
    font-size: .78rem;
    font-weight: 800
}

.pp-consent-switch {
    position: relative;
    display: inline-flex;
    width: 50px;
    height: 28px
}

.pp-consent-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0
}

.pp-consent-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #cfd4dc;
    transition: .16s ease
}

.pp-consent-slider:after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .22);
    content: "";
    transition: .16s ease
}

.pp-consent-switch input:checked+.pp-consent-slider {
    background: var(--pp-gold)
}

.pp-consent-switch input:checked+.pp-consent-slider:after {
    transform: translateX(22px)
}

.pp-consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px
}

.pp-consent-button {
    min-height: 50px;
    cursor: pointer;
    border: 1px solid var(--pp-navy);
    border-radius: 13px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 800
}

.pp-consent-button-secondary {
    background: #fff;
    color: var(--pp-navy)
}

.pp-consent-button-settings {
    border-color: var(--pp-line);
    background: var(--pp-soft);
    color: var(--pp-text)
}

.pp-consent-button-primary {
    border-color: var(--pp-gold);
    background: var(--pp-gold);
    color: #1e243d
}

.pp-consent-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    margin-top: 18px;
    color: var(--pp-muted);
    font-size: .82rem
}

@media(max-width:720px) {
    .pp-consent {
        bottom: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 18px
    }

    .pp-consent-inner {
        padding: 22px 18px
    }

    .pp-consent-actions {
        grid-template-columns: 1fr
    }

    .pp-consent-button-primary {
        order: -1
    }
}