/* Фиксированная кнопка */
.fixed-cover-btn-container {
    position: fixed;
    top: 65%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInFromRight 0.6s ease-out;
}

.fixed-cover-btn {
    background: linear-gradient(135deg, #ff3535 0%, #ff8c42 100%);
    color: white;
    padding: 18px 15px;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    box-shadow: -4px 4px 20px rgba(255, 107, 53, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 220px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    border: none;
    margin: 0;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.fixed-cover-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.fixed-cover-btn:hover::before {
    left: 100%;
}

.fixed-cover-btn:hover {
    background: linear-gradient(135deg, #e52b2b 0%, #ff3535 100%);
    transform: translateX(-5px) translateY(-2px);
    box-shadow: -6px 6px 25px rgba(255, 107, 53, 0.4);
}

/* Кнопка закрытия */
.cover-close-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    z-index: 1001;
    margin-left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.cover-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff3535 0%, #e52b2b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.cover-close-btn:hover::before {
    opacity: 1;
}

.cover-close-btn:hover {
    color: white;
    border-color: #ff6b35;
    box-shadow: -3px 3px 15px rgba(255, 107, 53, 0.3);
}

.cover-close-btn span {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cover-close-btn:hover span {
    transform: scale(1.2);
}

/* Анимация появления */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

/* Модальное окно */
.cover-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.cover-modal-contentt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cover-modal-close-fixed {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.cover-modal-close-fixed:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cover-modal-contentt h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
    padding-right: 40px;
}

.cover-modal-contentt p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cover-modal-actions {
    text-align: center;
}

/* Кнопка */



/* Адаптивность */
@media (max-width: 768px) {
    .fixed-cover-btn {
        padding: 15px 12px;
        font-size: 14px;
        max-width: 180px;
    }

    .cover-close-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-left: 10px;
    }

    .cover-modal-contentt {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .fixed-cover-btn {
        max-width: 150px;
        font-size: 13px;
        padding: 12px 10px;
    }

    .cover-close-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-left: 8px;
    }
}