.cookie-consent {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 10000;
    width: min(430px, calc(100% - 3rem));
    font-family: "Manrope", sans-serif;
    animation: cookieConsentIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cookie-consent-inner {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(110, 7, 243, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 20px 60px rgba(20, 28, 58, 0.16),
        0 4px 15px rgba(20, 28, 58, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.cookie-consent-icon {
    position: absolute;
    top: -25px;
    left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 9px;
    border: 1px solid rgba(110, 7, 243, 0.12);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(20, 28, 58, 0.12);
}

.cookie-consent-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cookie-consent-content {
    padding-top: 1.3rem;
}

.cookie-consent-label {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: #6e07f3;
    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cookie-consent h2 {
    margin: 0 0 0.7rem;
    color: #141c3a;
    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.cookie-consent p {
    margin: 0;
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.7;
}

.cookie-privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.8rem;
    color: #6e07f3;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.cookie-privacy-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-privacy-link svg {
    width: 13px;
    height: 13px;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.3rem;
}

.cookie-button {
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    border-radius: 9px;
    font-family: "Manrope", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.cookie-button:hover {
    transform: translateY(-2px);
}

.cookie-button-primary {
    flex: 1;
    color: #ffffff;
    background: #6e07f3;
    border: 1px solid #6e07f3;
    box-shadow: 0 7px 18px rgba(110, 7, 243, 0.18);
}

.cookie-button-primary:hover {
    background: #5b05ca;
    border-color: #5b05ca;
    box-shadow: 0 10px 25px rgba(110, 7, 243, 0.25);
}

.cookie-button-secondary {
    color: #141c3a;
    background: #ffffff;
    border: 1px solid rgba(20, 28, 58, 0.15);
}

.cookie-button-secondary:hover {
    border-color: rgba(110, 7, 243, 0.3);
    color: #6e07f3;
}

.cookie-settings-button {
    display: block;
    margin-top: 0.9rem;
    padding: 0;
    border: 0;
    color: #667085;
    background: transparent;
    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-settings-button:hover {
    color: #6e07f3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-preferences {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #e6ecf8;
}

.cookie-preferences[hidden] {
    display: none;
}

.cookie-preference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(20, 28, 58, 0.06);
}

.cookie-preference > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cookie-preference strong {
    color: #141c3a;
    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: 0.75rem;
}

.cookie-preference span:not(.cookie-status) {
    color: #98a2b3;
    font-size: 0.65rem;
    line-height: 1.5;
}

.cookie-status {
    flex-shrink: 0;
    color: #6e07f3;
    font-size: 0.62rem;
    font-weight: 700;
}

.cookie-switch {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 38px;
    height: 21px;
}

.cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d0d5dd;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.cookie-switch span::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
    box-shadow: 0 1px 3px rgba(20, 28, 58, 0.2);
    transition: transform 0.25s ease;
}

.cookie-switch input:checked + span {
    background: #6e07f3;
}

.cookie-switch input:checked + span::before {
    transform: translateX(17px);
}

.cookie-switch input:focus-visible + span {
    outline: 3px solid rgba(110, 7, 243, 0.2);
    outline-offset: 3px;
}

.cookie-save-button {
    width: 100%;
    min-height: 40px;
    margin-top: 1rem;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: #141c3a;
    font-family: "Manrope", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.cookie-save-button:hover {
    background: #6e07f3;
    transform: translateY(-2px);
}

@keyframes cookieConsentIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }

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

@media (max-width: 600px) {
    .cookie-consent {
        left: 1rem;
        bottom: 1rem;
        width: calc(100% - 2rem);
    }

    .cookie-consent-inner {
        padding: 1.5rem;
        border-radius: 17px;
    }

    .cookie-consent-icon {
        left: 1.5rem;
    }

    .cookie-consent-content {
        padding-top: 1.2rem;
    }

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

    .cookie-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-button,
    .cookie-save-button {
        animation: none;
        transition: none;
    }
}