.cn-cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 999999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 2px 3px 43px 0 rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
}

/* Анимации появления */
.cn-cookie-notice.animate-in {
    animation-duration: var(--animation-duration, 500ms);
    animation-fill-mode: both;
    visibility: visible;
}

/* Fade In */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cn-cookie-notice.fade-in {
    animation-name: fade-in;
}

/* Fade In Up */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cn-cookie-notice.fade-in-up {
    animation-name: fade-in-up;
}

/* Fade In Down */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cn-cookie-notice.fade-in-down {
    animation-name: fade-in-down;
}

/* Fade In Left */
@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cn-cookie-notice.fade-in-left {
    animation-name: fade-in-left;
}

/* Fade In Right */
@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cn-cookie-notice.fade-in-right {
    animation-name: fade-in-right;
}

/* Slide In Up */
@keyframes slide-in-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cn-cookie-notice.slide-in-up {
    animation-name: slide-in-up;
}

/* Slide In Down */
@keyframes slide-in-down {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.cn-cookie-notice.slide-in-down {
    animation-name: slide-in-down;
}

/* Slide In Left */
@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.cn-cookie-notice.slide-in-left {
    animation-name: slide-in-left;
}

/* Slide In Right */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cn-cookie-notice.slide-in-right {
    animation-name: slide-in-right;
}

/* Zoom In */
@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cn-cookie-notice.zoom-in {
    animation-name: zoom-in;
}

/* Bounce In */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    80% {
        opacity: 1;
        transform: scale(0.89);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cn-cookie-notice.bounce-in {
    animation-name: bounce-in;
}

/* Анимации исчезновения */
.cn-cookie-notice.animate-out {
    animation-duration: var(--animation-duration, 500ms);
    animation-fill-mode: both;
}

/* Fade Out */
@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.cn-cookie-notice.fade-out {
    animation-name: fade-out;
}

/* Fade Out Up */
@keyframes fade-out-up {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.cn-cookie-notice.fade-out-up {
    animation-name: fade-out-up;
}

/* Fade Out Down */
@keyframes fade-out-down {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.cn-cookie-notice.fade-out-down {
    animation-name: fade-out-down;
}

/* Fade Out Left */
@keyframes fade-out-left {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.cn-cookie-notice.fade-out-left {
    animation-name: fade-out-left;
}

/* Fade Out Right */
@keyframes fade-out-right {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.cn-cookie-notice.fade-out-right {
    animation-name: fade-out-right;
}

/* Slide Out Up */
@keyframes slide-out-up {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

.cn-cookie-notice.slide-out-up {
    animation-name: slide-out-up;
}

/* Slide Out Down */
@keyframes slide-out-down {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.cn-cookie-notice.slide-out-down {
    animation-name: slide-out-down;
}

/* Slide Out Left */
@keyframes slide-out-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.cn-cookie-notice.slide-out-left {
    animation-name: slide-out-left;
}

/* Slide Out Right */
@keyframes slide-out-right {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.cn-cookie-notice.slide-out-right {
    animation-name: slide-out-right;
}

/* Zoom Out */
@keyframes zoom-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.cn-cookie-notice.zoom-out {
    animation-name: zoom-out;
}

/* Bounce Out */
@keyframes bounce-out {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

.cn-cookie-notice.bounce-out {
    animation-name: bounce-out;
}

/* Остальные стили */
.cn-cookie-notice-top {
    top: 0;
}

.cn-cookie-notice-bottom {
    bottom: 0;
}

.cn-cookie-notice-content {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 20px;
}

.cn-cookie-notice-image {
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cn-cookie-notice-image img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.cn-cookie-notice-text {
    flex: 1;
}

.cn-cookie-notice-text p {
    margin: 0;
}

.cn-cookie-notice-text a {
    color: inherit;
    text-decoration: underline;
}

.cn-cookie-notice-button-container {
    flex-shrink: 0;
}

.cn-cookie-notice-button-left {
    order: -1;
}

.cn-cookie-notice-button-center {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.cn-cookie-notice-button {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.cn-cookie-notice-button:hover {
    opacity: 0.9;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cn-cookie-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .cn-cookie-notice-content {
        margin-right: 0;
        margin-bottom: 15px;
        flex-direction: column;
    }
    
    .cn-cookie-notice-image {
        margin-right: 0;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .cn-cookie-notice-image img {
        max-height: 100px;
    }
    
    .cn-cookie-notice-button-container {
        width: 100%;
    }
    
    .cn-cookie-notice-button {
        width: 100%;
    }
} 