.pixel-consent-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 1000000001;
    max-width: 1080px;
    margin: 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(60, 80, 112, 0.97));
    color: #e2e8f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.34);
}

.pixel-consent-banner[hidden],
.pixel-consent-modal[hidden],
.pixel-consent-backdrop[hidden] {
    display: none;
}

.pixel-consent-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    padding: 22px 24px;
}

.pixel-consent-banner__copy {
    flex: 1 1 460px;
}

.pixel-consent-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pixel-consent-banner__title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.1;
}

.pixel-consent-banner__text,
.pixel-consent-banner__meta {
    margin: 0;
    color: #dbe4ef;
    line-height: 1.65;
}

.pixel-consent-modal__lead,
.pixel-consent-card__text,
.pixel-consent-modal__hint {
    margin: 0;
    color: #1f2937;
    line-height: 1.65;
}

.pixel-consent-modal__lead {
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    max-width: 58ch;
}

.pixel-consent-card__text {
    font-size: 15px;
    font-weight: 500;
}

.pixel-consent-banner__meta {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 14px;
}

.pixel-consent-banner__actions {
    display: flex;
    flex: 0 1 360px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.pixel-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pixel-consent-btn:hover,
.pixel-consent-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
}

.pixel-consent-btn:focus,
.pixel-consent-link:focus,
.pixel-consent-toggle:focus-within {
    outline: 2px solid #f8fafc;
    outline-offset: 3px;
}

.pixel-consent-footer-link:focus {
    outline: none;
    box-shadow: none;
}

.pixel-consent-btn--primary {
    background: #ffffff;
    color: #162033;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.pixel-consent-btn--secondary {
    border-color: rgba(226, 232, 240, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.pixel-consent-btn--ghost {
    border-color: rgba(148, 163, 184, 0.38);
    background: transparent;
    color: #e2e8f0;
}

.pixel-consent-modal .pixel-consent-btn--ghost {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.pixel-consent-modal .pixel-consent-btn--ghost:hover,
.pixel-consent-modal .pixel-consent-btn--ghost:focus {
    background: #f8fafc;
    color: #0f172a;
}

.pixel-consent-link {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.48);
    text-underline-offset: 2px;
}

.pixel-consent-link:hover,
.pixel-consent-link:focus {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.pixel-consent-footer-link {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    padding-left: 15px;
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
    text-decoration-color: transparent;
    -webkit-tap-highlight-color: transparent;
}

.pixel-consent-footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    transform: translateY(-50%);
}

.pixel-consent-footer-link:hover,
.pixel-consent-footer-link:focus {
    color: inherit;
    text-decoration: none;
}

.pixel-consent-inline-settings-link {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.48);
}

.pixel-consent-inline-settings-link:hover,
.pixel-consent-inline-settings-link:focus {
    text-decoration: underline;
    text-decoration-color: #ffffff;
}

.pixel-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000000002;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.pixel-consent-modal {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 1000000003;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
    transform: translate(-50%, -50%);
}

.pixel-consent-modal__header,
.pixel-consent-modal__footer {
    padding: 24px 28px;
}

.pixel-consent-modal__header {
    border-bottom: 1px solid #e2e8f0;
}

.pixel-consent-modal__body {
    padding: 24px 28px 10px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.pixel-consent-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

.pixel-consent-modal__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.pixel-consent-modal__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.08;
}

.pixel-consent-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
}

.pixel-consent-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #e0f2fe;
    color: #0f3c5a;
    font-size: 14px;
    font-weight: 600;
}

.pixel-consent-status[hidden] {
    display: none;
}

.pixel-consent-grid {
    display: grid;
    gap: 16px;
}

.pixel-consent-card {
    border: 1px solid #dbe3ee;
    border-radius: 22px;
    background: #ffffff;
    padding: 20px;
}

.pixel-consent-card__top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.pixel-consent-card__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
}

.pixel-consent-card__tag {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pixel-consent-card__list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #334155;
}

.pixel-consent-card__list li + li {
    margin-top: 6px;
}

.pixel-consent-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 58px;
    height: 34px;
}

.pixel-consent-toggle input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
}

.pixel-consent-toggle__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.18s ease;
}

.pixel-consent-toggle__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    transition: transform 0.18s ease;
}

.pixel-consent-toggle input:checked + .pixel-consent-toggle__track {
    background: #3c5070;
}

.pixel-consent-toggle input:checked + .pixel-consent-toggle__track .pixel-consent-toggle__thumb {
    transform: translateX(24px);
}

.pixel-consent-toggle input:disabled + .pixel-consent-toggle__track {
    background: #94a3b8;
}

.pixel-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pixel-consent-modal__hint {
    font-size: 14px;
    color: #475569;
}

.pixel-consent-media-link--blocked {
    position: relative;
}

.pixel-consent-media-link--blocked::after {
    display: none;
}

.pixel-consent-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000005;
    max-width: min(440px, calc(100vw - 40px));
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.35);
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.34);
}

.pixel-consent-toast.is-visible {
    animation: pixelConsentToastIn 0.2s ease-out;
}

@keyframes pixelConsentToastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.pixel-consent-modal-open,
html.pixel-consent-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .pixel-consent-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        border-radius: 20px;
    }

    .pixel-consent-banner__inner,
    .pixel-consent-modal__header,
    .pixel-consent-modal__body,
    .pixel-consent-modal__footer {
        padding: 18px;
    }

    .pixel-consent-banner__title,
    .pixel-consent-modal__title {
        font-size: 24px;
    }

    .pixel-consent-modal__lead {
        font-size: 15px;
    }

    .pixel-consent-modal {
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        right: 12px;
        left: 12px;
        width: auto;
        height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
        min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
        border-radius: 20px;
        transform: none;
    }

    .pixel-consent-modal__header,
    .pixel-consent-modal__footer {
        flex: 0 0 auto;
        background: #f8fafc;
    }

    .pixel-consent-modal__body {
        flex: 1 1 auto;
        min-height: 0;
        padding-bottom: 18px;
        overscroll-behavior: contain;
    }

    .pixel-consent-modal__footer {
        gap: 10px;
        padding: 14px 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    }

    .pixel-consent-banner__actions,
    .pixel-consent-modal__actions {
        width: 100%;
    }

    .pixel-consent-banner__actions .pixel-consent-btn,
    .pixel-consent-modal__actions .pixel-consent-btn {
        width: 100%;
    }

    .pixel-consent-modal__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        order: 1;
    }

    .pixel-consent-modal__actions .pixel-consent-btn {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .pixel-consent-modal__actions [data-consent-action="save"] {
        grid-column: 1 / -1;
    }

    .pixel-consent-modal__hint {
        order: 2;
        width: 100%;
        font-size: 12px;
        line-height: 1.4;
    }

    .pixel-consent-card__top {
        flex-direction: column;
    }

    .pixel-consent-toggle {
        width: 100%;
        max-width: 58px;
    }

    .pixel-consent-toast {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
        max-width: none;
    }

}