/* domain-sale-widget.css */

/* --- Стили для Плашки (Popup) --- */
.domain-banner {
    position: fixed; bottom: 20px; right: 20px; width: 340px;
    background: #ffffff; border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); border: 2px solid #f39c12;
    z-index: 99999; transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; font-family: 'Inter', sans-serif;
}
.domain-banner.active { transform: translateY(0); }

.banner-header { background: #0056b3; color: white; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; }
.domain-url { font-weight: 700; font-size: 14px; }
.banner-close { cursor: pointer; font-size: 24px; opacity: 0.8; line-height: 1; }
.banner-close:hover { opacity: 1; }

.banner-body { padding: 20px; text-align: center; }
.banner-body h3 { margin: 0 0 5px; color: #1a202c; font-size: 20px; font-weight: 800; }
.price-tag { font-size: 28px; font-weight: 800; color: #f39c12; margin: 10px 0; }
.features-list { list-style: none; padding: 0; margin: 15px 0; text-align: left; font-size: 14px; color: #4a5568; background: #f8f9fa; padding: 15px; border-radius: 10px; }
.features-list li { margin-bottom: 8px; line-height: 1.4; }
.banner-phone { margin: 15px 0; }
.banner-phone a { color: #0056b3; text-decoration: none; background: #e2e8f0; padding: 10px 20px; border-radius: 50px; display: inline-block; font-weight: 600; }
.banner-body form { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.banner-body input { padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; background: #f8f9fa; }
.banner-body input:focus { outline: none; border-color: #f39c12; }
.banner-submit-btn { background: #f39c12; color: white; border: none; padding: 14px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* --- Стили для КНОПКИ (Новый дизайн) --- */
.persistent-buy-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #003d82; /* ТЕМНО-СИНИЙ (как шапка) */
    color: white;
    padding: 12px 20px;
    border: 2px solid #ffffff; /* Белая обводка для контраста */
    border-radius: 8px; /* ПРЯМОУГОЛЬНАЯ ФОРМА (менее скругленная) */
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    z-index: 100000;
    display: block; /* Всегда видна */
    transition: transform 0.3s;
    animation: pulseBtn 2s infinite; /* Пульсация */
}

.persistent-buy-btn:hover {
    transform: scale(1.05);
}

/* Анимация пульсации (Оранжевая, чтобы выделялась на синем) */
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

/* --- Мобильная версия --- */
@media (max-width: 768px) {
    .domain-banner {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 80px;
    }
    
    .persistent-buy-btn {
        bottom: 15px;
        right: 15px;
        left: auto; /* Убираем растягивание на всю ширину */
        width: auto; /* Компактная кнопка */
        padding: 10px 15px;
        font-size: 13px;
    }
}
/* --- Красивое поле ввода для попапа --- */
.domain-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #1a202c;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.domain-textarea::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.domain-textarea:focus {
    outline: none;
    border-color: #f39c12;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}