﻿.mnuLeftbtn.share-bottom {
    margin-top: 33.8rem; /* adjust value as needed */
}


.share-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 99999;
    max-width: 400px;
    width: auto;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #e74c3c;
    cursor: pointer;
    transition: 0.3s ease;
    pointer-events: auto !important;
    opacity: 1 !important;
}

    .close-btn:hover {
        color: #c0392b;
        transform: scale(1.2);
    }

.share-panel h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #333;
}

/* === PREVIEW AREA FIX === */
.share-preview {
    position: relative; /* important: anchor for overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    margin-bottom: 18px;
}

    .share-preview img {
        width: 180px;
        height: 180px;
        object-fit: cover;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        display: none; /* hidden until loaded */
    }

/* overlay sits above img */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.loading-spinner {
    border: 6px solid #ddd;
    border-top: 6px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* === SHARE BUTTONS (unchanged) === */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    color: #333;
    pointer-events: auto !important;
    opacity: 1 !important;
}

    .share-btn:hover {
        background: #e5e5e5;
        transform: scale(1.1);
    }

.whatsapp {
    color: #25d366;
}

.twitter {
    color: #000;
}

.facebook {
    color: #1877f2;
}

.email {
    color: #ea4335;
}

.link {
    color: #6c63ff;
}

/* Overlay for blocking background interactions */
#share-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.3);
    display: none;
}
