.fz152-banner {
    position: fixed;
    z-index: 999999;
    padding: 25px;
    border-radius: 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    max-width: 95%;
    animation-duration: 0.5s;
    animation-fill-mode: both;
    line-height: 1.6;
    font-size: 15px;
    display: none; /* Скрыт по умолчанию */
}

.fz152-banner.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation-name: fz152-fadeInUp;
}

@keyframes fz152-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fz152-banner-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative; /* Для позиционирования крестика */
}

.fz152-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fz152-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.fz152-text {
    text-align: center;
}

.fz152-text p {
    margin-bottom: 10px;
}

.fz152-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.fz152-policy-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 44px;
    box-sizing: border-box;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
    height: auto;
    line-height: 1.4;
}

.fz152-policy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fz152-accept-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.fz152-accept-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Позиционирование */
.fz152-position-left {
    bottom: 30px;
    left: 30px;
    width: 380px;
}

.fz152-position-center {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: auto;
    max-width: 600px;
}

.fz152-position-center.active {
    transform: translateX(-50%) translateY(0);
}

.fz152-position-right {
    bottom: 30px;
    right: 30px;
    width: 380px;
}

/* Для боковых позиций - вертикальное расположение кнопок */
.fz152-position-left .fz152-actions,
.fz152-position-right .fz152-actions {
    flex-direction: column;
}

.fz152-position-left .fz152-policy-btn,
.fz152-position-right .fz152-policy-btn,
.fz152-position-left .fz152-accept-btn,
.fz152-position-right .fz152-accept-btn {
    width: 100%;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 900px) {
    .fz152-position-center {
        width: 90%;
        max-width: none;
        left: 5%;
        transform: translateX(0) translateY(30px);
    }

    .fz152-position-center.active {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 600px) {
    .fz152-banner {
        width: calc(100% - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        max-width: none !important;
        padding: 20px;
    }

    .fz152-position-center {
        transform: translateX(0) translateY(30px);
        left: 20px;
        width: calc(100% - 40px);
    }

    .fz152-position-center.active {
        transform: translateX(0) translateY(0);
    }

    .fz152-actions {
        flex-direction: column;
    }

    .fz152-policy-btn,
    .fz152-accept-btn {
        width: 100%;
    }
}
