/* Общие стили для обоих типов */
.ccm-banner {
    position: fixed;
    z-index: 999999;
    display: none;
}

/* Попап */
.ccm-banner-popup {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ccmFadeIn .3s ease;
}

.ccm-banner-popup .ccm-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
    backdrop-filter: blur(4px);
}

.ccm-banner-popup .ccm-banner-content {
    position: relative;
    max-width: 650px;
    width: 90%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px #0000004d;
    padding: 40px 35px 35px;
    z-index: 1;
    animation: ccmSlideUp .4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

/* Баннер внизу */
.ccm-banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    animation: ccmSlideUpBottom .4s ease;
    background: #ffffff;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px 30px;
    box-sizing: border-box;
    max-height: 33%;
    overflow-y: auto;
}

.ccm-banner-bottom .ccm-banner-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.ccm-banner-bottom .ccm-banner-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.ccm-banner-bottom .ccm-banner-body p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.ccm-banner-bottom .ccm-banner-footer {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Общие стили для контента */
.ccm-banner-header h3 {
    text-align: center;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.ccm-banner-body p {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.7;
    color: #4a4a4a;
}

.ccm-banner-body a {
    color: #06c;
    text-decoration: underline;
    font-weight: 500;
}

.ccm-banner-body a:hover {
    color: #004d99;
    text-decoration: none;
}

.ccm-banner-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 20px;
}

.ccm-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.ccm-btn-accept {
    background: #1a1a1a;
    color: #fff;
}

.ccm-btn-accept:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #00000026;
}


/* Анимации */
@keyframes ccmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ccmSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ccmSlideUpBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .ccm-banner-bottom {
        padding: 15px 20px;
        max-height: 50vh;
    }
    
    .ccm-banner-bottom .ccm-banner-footer {
        justify-content: center;
    }
    
    .ccm-banner-bottom .ccm-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ccm-banner-popup .ccm-banner-content {
        padding: 25px 20px 20px;
    }
    
    .ccm-banner-popup .ccm-banner-header h3 {
        font-size: 19px;
    }
    
    .ccm-banner-popup .ccm-banner-body p {
        font-size: 13px;
    }
    
    .ccm-banner-popup .ccm-btn {
        padding: 10px 24px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    .ccm-banner-popup .ccm-banner-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .ccm-banner-bottom .ccm-banner-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .ccm-banner-bottom .ccm-btn {
        width: 100%;
    }
}