.analytics-consent {
    position: fixed;
    z-index: 10000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    max-width: 720px;
    margin-left: auto;
    color: #ffffff;
    font-family: Montserrat, Arial, sans-serif;
    animation: analytics-consent-enter 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.analytics-consent[hidden],
.analytics-consent__settings[hidden] {
    display: none;
}

.analytics-consent__content {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: #20252d;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    transition: min-height 320ms ease, border-color 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

.analytics-consent__body {
    padding-right: 32px;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 220ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.analytics-consent__close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    width: 36px;
    min-height: 36px !important;
    padding: 0 !important;
    place-items: center;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 50% !important;
    background: transparent;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.analytics-consent__close span {
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}

.analytics-consent__close:hover,
.analytics-consent__close:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    outline: none;
    transform: rotate(6deg) scale(1.05);
}

.analytics-consent__success {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 22px 58px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.92);
    transition: opacity 260ms ease 100ms, transform 420ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}

.analytics-consent__success strong {
    margin-top: 10px;
    font-size: 22px;
}

.analytics-consent__success span {
    margin-top: 4px;
    color: #e7fff1;
    font-size: 14px;
}

.analytics-consent__check {
    width: 72px;
    height: 72px;
    overflow: visible;
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.analytics-consent__check circle,
.analytics-consent__check path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.analytics-consent--success .analytics-consent__content {
    min-height: 190px;
    border-color: rgba(170, 255, 207, 0.54);
    background: linear-gradient(135deg, #16794b, #25a866);
    box-shadow: 0 20px 54px rgba(14, 104, 61, 0.38);
}

.analytics-consent--success .analytics-consent__body {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
}

.analytics-consent--success .analytics-consent__success {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.analytics-consent--success .analytics-consent__check circle {
    animation: analytics-consent-draw 520ms ease 120ms forwards;
}

.analytics-consent--success .analytics-consent__check path {
    animation: analytics-consent-draw 420ms ease 360ms forwards;
}

.analytics-consent--closing {
    pointer-events: none;
    animation: analytics-consent-exit 280ms ease forwards;
}

.analytics-consent h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.analytics-consent p {
    margin: 0;
    color: #e4e8ed;
    font-size: 14px;
    line-height: 1.55;
}

.analytics-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.analytics-consent button {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.analytics-consent__accept,
.analytics-consent__save {
    color: #20252d;
    background: #f8ca73;
}

.analytics-consent__necessary,
.analytics-consent__configure {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: transparent;
}

.analytics-consent__settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.analytics-consent__settings label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.analytics-consent__settings input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.analytics-consent__settings span {
    display: grid;
    gap: 3px;
}

.analytics-consent__settings small {
    color: #c9d0d8;
    line-height: 1.35;
}

.cookie-settings-button {
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@keyframes analytics-consent-enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes analytics-consent-exit {
    to {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
}

@keyframes analytics-consent-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 620px) {
    .analytics-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .analytics-consent__content {
        padding: 18px;
    }

    .analytics-consent__body {
        padding-right: 26px;
    }

    .analytics-consent__actions,
    .analytics-consent__settings {
        align-items: stretch;
        flex-direction: column;
    }

    .analytics-consent__actions button,
    .analytics-consent__save {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .analytics-consent,
    .analytics-consent__content,
    .analytics-consent__body,
    .analytics-consent__success,
    .analytics-consent__check circle,
    .analytics-consent__check path {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
    }
}
