.twj-analytics-slice-2 {
    position: relative;
    z-index: 1030;
    color-scheme: light;
}

.twj-analytics-slice-2[data-consent-state="UNDECIDED"] {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 100vh;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-top: 1px solid rgba(170, 188, 207, .72);
    background: rgba(245, 248, 252, .96);
    box-shadow: 0 -12px 34px rgba(15, 35, 70, .10);
    backdrop-filter: blur(12px);
}

.twj-analytics-consent {
    box-sizing: border-box;
    width: min(720px, calc(100% - 48px));
    margin: 28px auto;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    color: #40516d;
    box-shadow: 0 18px 50px rgba(15, 35, 70, .12);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.twj-analytics-slice-2[data-consent-state="UNDECIDED"] .twj-analytics-consent {
    margin-top: 0;
    margin-bottom: 0;
}

.twj-analytics-consent h2 {
    margin: 0 0 10px;
    color: #10223f;
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.twj-analytics-consent p {
    max-width: 64ch;
    margin: 0;
}

.twj-analytics-consent__form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.twj-analytics-consent__choice {
    appearance: none;
    display: inline-flex;
    min-width: 0;
    min-height: 48px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid #cbd8e5;
    border-radius: 10px;
    background: #fff;
    color: #10223f;
    font: inherit;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease,
        color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.twj-analytics-consent__choice[value="ACCEPTED_ANALYTICS"] {
    border-color: #00a85a;
    background: #00a85a;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 168, 90, .18);
}

.twj-analytics-consent__choice[value="ACCEPTED_ANALYTICS"]:hover {
    border-color: #007d45;
    background: #007d45;
}

.twj-analytics-consent__choice[value="REJECTED_ANALYTICS"]:hover,
.twj-analytics-consent__choice[value="WITHDRAWN_ANALYTICS"]:hover {
    border-color: #9fb2c6;
    background: #f5f8fc;
}

.twj-analytics-consent__choice:hover { transform: translateY(-1px); }
.twj-analytics-consent__choice:active {
    box-shadow: none;
    transform: translateY(0);
}

.twj-analytics-consent__choice:focus-visible,
.twj-analytics-consent a:focus-visible {
    outline: 3px solid #1976d2;
    outline-offset: 3px;
}

.twj-analytics-consent__information {
    margin-top: 18px !important;
    padding-top: 14px;
    border-top: 1px solid #e5edf5;
    font-size: 14px;
}

.twj-analytics-consent a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border-radius: 4px;
    color: #075985;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.twj-analytics-consent a:hover { color: #10223f; }

@media (max-width: 600px) {
    .twj-analytics-consent {
        width: calc(100% - 24px);
        margin: 18px auto;
        padding: 20px;
        border-radius: 16px;
    }

    .twj-analytics-consent__form { flex-direction: column; }
    .twj-analytics-consent__choice {
        width: 100%;
        flex: 0 0 auto;
    }
}

@media (max-width: 340px) {
    .twj-analytics-consent {
        width: calc(100% - 16px);
        padding: 18px 16px;
    }

    .twj-analytics-consent h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .twj-analytics-consent__choice { transition: none; }
}
