#propix-consent-root {
    position: relative;
    z-index: 2147483000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#propix-consent-root *,
#propix-consent-root *::before,
#propix-consent-root *::after {
    box-sizing: border-box;
}

#propix-consent-root [hidden] {
    display: none !important;
}

.propix-consent,
.propix-modal__card,
.propix-reopen {
    --pp-accent: #000000;
    --pp-bg: #ffffff;
    --pp-text: #111111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* One viewport layer per consent screen. Only one layer is visible at a time. */
.propix-consent-layer {
    position: fixed;
    inset: 0;
}

.propix-consent-layer--banner {
    z-index: 1;
}

.propix-consent-layer--preferences {
    z-index: 2;
}

.propix-consent-scrim {
    position: absolute;
    inset: 0;
}

.propix-consent-scrim--blur {
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.propix-consent-scrim--visible {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Main consent popup. Desktop width is exactly 800px when the viewport allows it. */
.propix-consent {
    position: absolute;
    left: 50%;
    width: min(800px, calc(100% - 64px));
    min-height: 219px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 40px 40px;
    background: var(--pp-bg);
    color: var(--pp-text);
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
}

.propix-consent--center {
    top: 50%;
    transform: translate(-50%, -50%);
}

.propix-consent--bottom {
    bottom: 32px;
    transform: translateX(-50%);
}

.propix-consent__content {
    min-width: 0;
}

.propix-consent__content p {
    max-width: 100%;
    margin: 0;
    color: inherit;
    font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.propix-consent__content a {
    color: var(--pp-accent);
    font-weight: 600;
    text-decoration: none;
}

.propix-consent__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    margin-top: 28px;
}

.propix-consent .pp-btn,
.propix-modal__card .pp-btn {
    appearance: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    text-transform: none;
    letter-spacing: 0;
}

.propix-consent .pp-btn {
    min-height: 52px;
    padding: 0 44px;
    font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.propix-consent .pp-btn--primary,
.propix-modal__card .pp-btn--primary {
    border: 1px solid var(--pp-accent);
    background: var(--pp-accent);
    color: #ffffff;
}

.propix-consent .pp-btn--primary {
    min-width: 176px;
    margin-left: auto;
}

.propix-consent .pp-consent-link {
    appearance: none;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--pp-accent);
    font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
}

.propix-consent button:hover {
    filter: brightness(.97);
}

.propix-consent__content a:hover,
.propix-consent__content a:focus-visible,
.propix-consent .pp-consent-link:hover,
.propix-consent .pp-consent-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.propix-consent button:focus-visible,
.propix-modal__card button:focus-visible,
.propix-modal__card input:focus-visible {
    outline: 2px solid var(--pp-accent);
    outline-offset: 2px;
}

/* Preferences screen. The scrim is intentionally not a close target. */
.propix-modal__card {
    position: relative;
    width: min(500px, calc(100% - 32px));
    max-height: 84vh;
    margin: 8vh auto 0;
    overflow: auto;
    padding: 28px 30px;
    background: var(--pp-bg);
    color: var(--pp-text);
    border: 1px solid rgba(0, 0, 0, .20);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .20);
}

.propix-modal__card h3 {
    margin: 0 0 12px;
    color: inherit;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.propix-modal__card > p {
    margin: 0 0 18px;
    color: inherit;
    opacity: .82;
    font-size: 14px;
    line-height: 1.5;
}

.pp-consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, .10);
}

.pp-consent-row span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pp-consent-row b {
    font-size: 14px;
}

.pp-consent-row small {
    font-size: 12px;
    line-height: 1.4;
    opacity: .70;
}

.pp-consent-row input {
    width: 20px;
    height: 20px;
}

.pp-consent-row--locked {
    opacity: .65;
}

.propix-modal__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.propix-modal__card .pp-btn {
    min-height: 44px;
    padding: 10px 18px;
    font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.propix-modal__card .pp-btn--secondary {
    border: 1px solid rgba(0, 0, 0, .20);
    background: #ffffff;
    color: var(--pp-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

.propix-reopen {
    position: fixed;
    z-index: 3;
    left: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, .22);
    border-radius: 6px;
    background: var(--pp-bg);
    color: var(--pp-text);
    font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    text-transform: none;
}

@media (max-width: 620px) {
    .propix-consent {
        right: 16px;
        left: 16px;
        width: auto;
        min-height: 0;
        padding: 36px 32px 32px;
        border-radius: 8px;
    }

    .propix-consent--center {
        top: 50%;
        transform: translateY(-50%);
    }

    .propix-consent--bottom {
        bottom: 16px;
        transform: none;
    }

    .propix-consent__content p {
        font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    .propix-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .propix-consent .pp-consent-link {
        grid-row: 1;
        justify-self: center;
        padding: 0;
        font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    .propix-consent .pp-btn--primary {
        grid-row: 2;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        margin: 0;
        font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    .propix-modal__card {
        width: auto;
        margin: 4vh 12px 0;
        padding: 22px;
    }

    .propix-modal__card h3 {
        font-size: 22px;
    }

    .propix-modal__actions {
        flex-direction: column;
    }

    .propix-modal__actions .pp-btn {
        width: 100%;
    }

    .propix-reopen {
        left: 12px;
        bottom: 12px;
    }
}

