/* --- МОДУЛЬ: ПОДЕЛИТЬСЯ (ВНУТРИ САЙДБАРА) --- */

.share-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Прибиваем к низу сайдбара */
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.share-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.share-card {
    background: #fff;
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 25px 20px 15px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    position: relative;
    transform: translateY(100%);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 95%;
    overflow-y: auto;
}

.share-overlay:not(.hidden) .share-card {
    transform: translateY(0);
}

.share-close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: #f3f4f6;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: #6b7280;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.share-close-btn:hover { background: #e5e7eb; }

.share-heart-icon {
    width: 44px; height: 44px;
    background: #d1fae5; color: #10b981;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; 
    margin-bottom: 12px;
}

.share-title { font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 8px; line-height: 1.2; }
.share-desc { font-size: 13px; color: #6b7280; line-height: 1.4; margin-bottom: 15px; }

.share-success-box {
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
    padding: 10px 15px; border-radius: 12px;
    font-size: 12px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 15px;
}
.share-check {
    background: transparent; color: #166534; border: 1px solid #166534;
    width: 14px; height: 14px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: bold;
}

.share-btn-main {
    width: 100%; background: #10b981; color: #fff; border: none; padding: 16px;
    border-radius: 16px; font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px;
    transition: 0.2s;
}
.share-btn-main:active { transform: scale(0.98); }

.share-socials { display: flex; gap: 8px; margin-bottom: 12px; }
.share-soc-btn {
    flex: 1; padding: 12px 0; border: none; border-radius: 14px;
    color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.share-soc-btn.max { background: #0077ff; }
.share-soc-btn.tg { background: #0088cc; }
.share-soc-btn.vk { background: #2787F5; }

.share-btn-copy {
    width: 100%; background: #fff; border: 1px solid #e5e7eb; color: #374151; padding: 14px;
    border-radius: 16px; font-size: 13px; font-weight: 700; cursor: pointer; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.share-btn-copy:active { transform: scale(0.98); background: #f9fafb;}

.share-promo-box {
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 16px; padding: 15px; margin-bottom: 15px;
}
.promo-title { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.promo-text { font-size: 11px; color: #6b7280; line-height: 1.4; margin-bottom: 15px; }
.promo-actions { display: flex; gap: 8px; }
.promo-btn-copy {
    background: #10b981; color: #fff; border: none; padding: 10px; border-radius: 10px;
    font-size: 11px; font-weight: 700; cursor: pointer; flex: 1;
}
.promo-soc-btn {
    background: #fff; border: 1px solid #e5e7eb; color: #374151; padding: 10px 15px;
    border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer;
}

.share-footer {
    font-size: 10px; color: #9ca3af; line-height: 1.4; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px;
}

.share-not-now {
    text-align: center; font-size: 12px; font-weight: 600; color: #9ca3af; cursor: pointer; padding: 10px;
}
.share-not-now:hover { color: #6b7280; }