.consent-banner,
.consent-modal {
    --consent-bg: #ffffff;
    --consent-ink: #212321;
    --consent-muted: #374957;
    --consent-line: #dedede;
    --consent-dark: #34224f;
    --consent-accent: #e6007e;
    --consent-accent-soft: #fdc5e4;
    --consent-font: "Instrument Sans", Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    font-family: var(--consent-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--consent-ink);
    text-align: left;
}

.consent-banner *,
.consent-modal * {
    box-sizing: border-box;
}

.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--consent-bg);
    border-top: 3px solid var(--consent-accent);
    box-shadow: 0 -6px 28px rgba(52, 34, 79, 0.28);
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.consent-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

.consent-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
}

.consent-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--consent-ink);
}

.consent-text {
    margin: 0 0 12px;
}

.consent-text p {
    margin: 0 0 10px;
}

.consent-text p:last-child {
    margin-bottom: 0;
}

.consent-text--small,
.consent-note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--consent-muted);
}

.consent-note {
    margin: 12px 0 0;
}

.consent-links {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--consent-muted);
}

.consent-banner a,
.consent-modal a {
    color: var(--consent-accent);
    text-decoration: underline;
}

.consent-banner a:hover,
.consent-modal a:hover,
.consent-banner a:focus,
.consent-modal a:focus {
    color: var(--consent-dark);
}

.consent-links .consent-sep {
    margin: 0 8px;
    color: var(--consent-line);
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.consent-btn {
    flex: 1 1 200px;
    min-height: 48px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #ffffff;
    background-color: var(--consent-dark);
    border: 2px solid var(--consent-dark);
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.consent-btn:hover {
    color: #ffffff;
    background-color: var(--consent-accent);
    border-color: var(--consent-accent);
}

.consent-btn--primary {
    background-color: var(--consent-accent);
    border-color: var(--consent-accent);
}

.consent-btn--primary:hover {
    background-color: var(--consent-dark);
    border-color: var(--consent-dark);
}

.consent-btn--text {
    flex: 0 1 auto;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--consent-muted);
    background: transparent;
    border-color: transparent;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}

.consent-btn--text:hover {
    color: var(--consent-accent);
    background: transparent;
    border-color: transparent;
}

.consent-banner :focus-visible,
.consent-modal :focus-visible {
    outline: 3px solid var(--consent-dark);
    outline-offset: 2px;
}

.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.consent-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 34, 79, 0.55);
}

.consent-modal__dialog {
    position: relative;
    width: 760px;
    max-width: calc(100vw - 32px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: var(--consent-bg);
    border-top: 3px solid var(--consent-accent);
    box-shadow: 0 12px 48px rgba(52, 34, 79, 0.38);
}

.consent-modal__header {
    position: relative;
    padding: 22px 56px 14px 24px;
    border-bottom: 1px solid var(--consent-line);
}

.consent-modal__header h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--consent-ink);
}

.consent-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--consent-ink);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
}

.consent-modal__close:hover {
    color: var(--consent-accent);
    border-color: var(--consent-line);
}

.consent-modal__body {
    padding: 18px 24px 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.consent-modal__body > p {
    margin: 0 0 16px;
}

.consent-modal__footer {
    padding: 16px 24px calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--consent-line);
}

.consent-modal__footer .consent-actions {
    margin-top: 0;
}

.consent-category {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--consent-line);
}

.consent-category__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.consent-category__head strong {
    font-size: 17px;
    font-weight: 700;
}

.consent-category__head label {
    margin: 0;
}

.consent-category p {
    margin: 0;
    font-size: 14px;
    color: var(--consent-muted);
}

.consent-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.consent-switch input {
    width: 52px;
    height: 28px;
    margin: 0;
    flex: 0 0 auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #c0c5c8;
    border: 1px solid #a4a4a4;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.consent-switch input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(52, 34, 79, 0.35);
    transition: transform 0.15s ease;
}

.consent-switch input:checked {
    background: var(--consent-accent);
    border-color: var(--consent-accent);
}

.consent-switch input:checked::after {
    transform: translateX(24px);
}

.consent-switch input:disabled {
    cursor: not-allowed;
    background: #8a8a8a;
    border-color: #8a8a8a;
}

.consent-switch__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--consent-ink);
    cursor: pointer;
}

.consent-switch input:disabled + .consent-switch__label {
    color: var(--consent-muted);
    cursor: default;
}

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

.consent-modal--confirm {
    z-index: 100002;
}

.consent-modal--confirm .consent-modal__dialog {
    width: 640px;
}

.consent-benefits {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    border: 1px solid var(--consent-line);
}

.consent-benefits li {
    position: relative;
    padding: 12px 16px 12px 46px;
    border-top: 1px solid var(--consent-line);
}

.consent-benefits li:first-child {
    border-top: 0;
}

.consent-benefits li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 15px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--consent-accent) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.consent-benefits strong {
    display: block;
    font-size: 15px;
}

.consent-benefits span {
    color: var(--consent-muted);
    font-size: 14px;
}

.consent-modal--confirm .consent-actions {
    align-items: center;
    justify-content: space-between;
}

.consent-embed {
    position: relative;
    display: block;
}

.consent-embed:not(.is-active) {
    min-height: 220px;
    background: #f4f4f4;
}

.consent-embed:not(.is-active) [data-consent-src] {
    visibility: hidden;
}

.consent-embed__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
    color: #212321;
    background: #f4f4f4;
    border: 1px solid #dedede;
}

.consent-embed__placeholder strong {
    font-size: 16px;
}

.consent-embed__placeholder p {
    margin: 0;
    max-width: 440px;
    font-size: 13px;
    line-height: 1.5;
}

.consent-embed__placeholder .consent-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 22px;
    font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #ffffff;
    background-color: #e6007e;
    border: 2px solid #e6007e;
    border-radius: 0;
    cursor: pointer;
}

.consent-embed__placeholder .consent-btn:hover {
    background-color: #34224f;
    border-color: #34224f;
}

.consent-embed.is-active .consent-embed__placeholder {
    display: none;
}

@media (max-width: 767px) {
    .consent-banner {
        font-size: 14px;
        padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .consent-title,
    .consent-modal__header h2 {
        font-size: 18px;
    }

    .consent-actions {
        flex-direction: column;
    }

    .consent-btn {
        flex: 1 1 auto;
        width: 100%;
    }

    .consent-modal {
        padding: 0;
    }

    .consent-modal__dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        max-height: 100%;
    }

    .consent-modal__header {
        padding: 18px 52px 12px 16px;
    }

    .consent-modal__body {
        padding: 14px 16px 4px;
    }

    .consent-modal__footer {
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .consent-category {
        padding: 14px;
    }

    .consent-modal--confirm .consent-actions {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent-banner,
    .consent-btn,
    .consent-switch input,
    .consent-switch input::after {
        transition: none;
    }
}

@media (prefers-contrast: more) {
    .consent-banner,
    .consent-modal {
        --consent-muted: #212321;
        --consent-line: #212321;
    }
}

@media (forced-colors: active) {
    .consent-switch input {
        forced-color-adjust: none;
        background: ButtonFace;
        border: 2px solid ButtonText;
    }

    .consent-switch input::after {
        background: ButtonText;
    }

    .consent-switch input:checked {
        background: Highlight;
    }

    .consent-switch input:checked::after {
        background: HighlightText;
    }
}

@media print {
    .consent-banner,
    .consent-modal {
        display: none !important;
    }
}
