.cookie-consent {
    position     : fixed;
    bottom       : 1.5rem;
    right        : 1.5rem;
    max-width    : 450px;
    background   : linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.95) 100%);
    border-radius: 24px;
    box-shadow   :
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 0 60px rgba(99, 102, 241, 0.08);
    padding        : 2rem;
    z-index        : 1080;
    backdrop-filter: blur(20px) saturate(180%);
    border         : 1px solid rgba(226, 232, 240, 0.8);
    transform      : translateY(150%);
    opacity        : 0;
    transition     : transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease-in-out;
    overflow       : hidden;
}

.cookie-consent::before {
    content : '';
    position: absolute;
    top     : 0;
    left    : 0;
    right   : 0;
    height  : 4px;
    background: linear-gradient(90deg,
            #6366f1 0%,
            #8b5cf6 25%,
            #ec4899 50%,
            #f59e0b 75%,
            #6366f1 100%);
    background-size: 200% 100%;
    animation      : gradientShift 3s ease infinite;
    border-radius  : 24px 24px 0 0;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.cookie-consent.cookie-consent--visible {
    transform: translateY(0) scale(1);
    opacity  : 1;
}

.cookie-consent__header {
    display      : flex;
    gap          : 1.25rem;
    margin-bottom: 1.5rem;
    position     : relative;
}

.cookie-consent__icon {
    flex-shrink    : 0;
    width          : 64px;
    height         : 64px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    background     : linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius  : 18px;
    box-shadow     :
        0 10px 25px -5px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position : relative;
    overflow : hidden;
    animation: iconFloat 3s ease-in-out infinite;
}

.cookie-consent__icon::before {
    content   : '';
    position  : absolute;
    top       : -50%;
    left      : -50%;
    width     : 200%;
    height    : 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation : iconShine 2s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes iconShine {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(50%, 50%) rotate(180deg);
    }
}

.cookie-consent__icon .cookie-icon {
    width     : 40px;
    height    : 40px;
    object-fit: contain;
    filter    : drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position  : relative;
    z-index   : 1;
    animation : cookieSpin 4s linear infinite;
}

@keyframes cookieSpin {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-5deg) scale(1.05);
    }

    50% {
        transform: rotate(0deg) scale(1);
    }

    75% {
        transform: rotate(5deg) scale(1.05);
    }
}

.cookie-consent__content {
    flex: 1;
}

.cookie-consent h5 {
    font-size              : 1.25rem;
    font-weight            : 700;
    margin-bottom          : 0.5rem;
    color                  : #1e293b;
    background             : linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip        : text;
    line-height            : 1.4;
}

.cookie-consent p {
    font-size    : 0.9rem;
    color        : #64748b;
    margin-bottom: 0;
    line-height  : 1.6;
}

.cookie-consent__buttons {
    display   : flex;
    flex-wrap : wrap;
    gap       : 0.75rem;
    margin-top: 1.5rem;
}

.cookie-consent__buttons .btn {
    flex         : 1 1 auto;
    min-width    : 120px;
    padding      : 0.65rem 1.25rem;
    font-weight  : 600;
    font-size    : 0.875rem;
    border-radius: 12px;
    transition   : all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position     : relative;
    overflow     : hidden;
}

.cookie-consent__buttons .btn::before {
    content      : '';
    position     : absolute;
    top          : 50%;
    left         : 50%;
    width        : 0;
    height       : 0;
    border-radius: 50%;
    background   : rgba(255, 255, 255, 0.3);
    transform    : translate(-50%, -50%);
    transition   : width 0.6s, height 0.6s;
}

.cookie-consent__buttons .btn:hover::before {
    width : 300px;
    height: 300px;
}

.cookie-consent__buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border    : none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cookie-consent__buttons .btn-primary:hover {
    transform : translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.cookie-consent__buttons .btn-outline-primary {
    border    : 2px solid #667eea;
    color     : #667eea;
    background: transparent;
}

.cookie-consent__buttons .btn-outline-primary:hover {
    background  : linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color       : white;
    border-color: transparent;
    transform   : translateY(-2px);
}

.cookie-consent__buttons .btn-outline-secondary {
    border    : 2px solid #e2e8f0;
    color     : #64748b;
    background: transparent;
}

.cookie-consent__buttons .btn-outline-secondary:hover {
    background  : #f1f5f9;
    border-color: #cbd5e1;
    transform   : translateY(-2px);
}

.cookie-preference-list .form-check-label {
    font-weight: 600;
    color      : #1e293b;
}

.cookie-preference-list .form-text {
    font-size  : 0.85rem;
    color      : #64748b;
    line-height: 1.6;
}

[data-bs-theme="dark"] .cookie-consent,
.dark .cookie-consent {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    border    : 1px solid rgba(71, 85, 105, 0.6);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px rgba(99, 102, 241, 0.12);
}

[data-bs-theme="dark"] .cookie-consent h5,
.dark .cookie-consent h5 {
    background             : linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip        : text;
}

[data-bs-theme="dark"] .cookie-consent p,
.dark .cookie-consent p {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .cookie-consent__icon,
.dark .cookie-consent__icon {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    box-shadow:
        0 10px 25px -5px rgba(129, 140, 248, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

[data-bs-theme="dark"] .cookie-consent__buttons .btn-outline-secondary,
.dark .cookie-consent__buttons .btn-outline-secondary {
    border-color: #475569;
    color       : #cbd5e1;
}

[data-bs-theme="dark"] .cookie-consent__buttons .btn-outline-secondary:hover,
.dark .cookie-consent__buttons .btn-outline-secondary:hover {
    background  : #334155;
    border-color: #64748b;
}

[data-bs-theme="dark"] .cookie-preference-list .form-text,
.dark .cookie-preference-list .form-text {
    color: #94a3b8;
}

[data-bs-theme="dark"] .cookie-preference-list .form-check-label,
.dark .cookie-preference-list .form-check-label {
    color: #f1f5f9;
}

@media (max-width: 767.98px) {
    .cookie-consent {
        left         : 1rem;
        right        : 1rem;
        bottom       : 1rem;
        max-width    : none;
        padding      : 1.5rem;
        border-radius: 20px;
    }

    .cookie-consent__header {
        gap          : 1rem;
        margin-bottom: 1.25rem;
    }

    .cookie-consent__icon {
        width        : 56px;
        height       : 56px;
        border-radius: 16px;
    }

    .cookie-consent__icon .cookie-icon {
        width : 36px;
        height: 36px;
    }

    .cookie-consent h5 {
        font-size: 1.1rem;
    }

    .cookie-consent p {
        font-size: 0.85rem;
    }

    .cookie-consent__buttons {
        flex-direction: column;
        gap           : 0.625rem;
    }

    .cookie-consent__buttons .btn {
        width    : 100%;
        min-width: auto;
    }
}