/* Share trigger buttons */
.page-share-btn,
.desktop-control-btn.share-btn,
.carousel-btn-mobile.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(213, 190, 198, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.page-share-btn:hover,
.desktop-control-btn.share-btn:hover,
.carousel-btn-mobile.share-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-share-btn img,
.desktop-control-btn.share-btn img,
.carousel-btn-mobile.share-btn img {
    display: block;
    width: 22px;
    height: 22px;
}

.service-summary-card {
    position: relative;
}

.service-summary-header .page-share-btn {
    position: static;
}

/* Share popup */
.share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.share-popup-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: sharePopupSlideIn 0.3s ease-out;
}

@keyframes sharePopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(213, 190, 198, 0.3);
}

.share-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.share-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.share-popup-body {
    padding: 24px;
}

.share-url-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-url-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid rgba(213, 190, 198, 1);
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
    outline: none;
}

.share-url-input:focus {
    border-color: rgba(229, 0, 80, 1);
    background: white;
}

.share-copy-btn {
    padding: 12px 24px;
    background: rgba(229, 0, 80, 1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: #cc0046;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 0, 80, 0.3);
}

.share-copy-btn:active {
    transform: translateY(0);
}

.share-copy-message {
    margin-top: 12px;
    padding: 8px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    animation: shareFadeIn 0.3s ease;
}

.share-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.share-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-whatsapp-btn {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.share-instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: transparent;
}

.share-instagram-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(188, 24, 136, 0.3);
    opacity: 0.9;
}

@keyframes shareFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .share-popup-content {
        width: 95%;
        max-width: none;
    }

    .share-url-container {
        gap: 5px;
    }

    .share-url-input {
        padding: 12px 8px;
    }

    .share-popup-body {
        padding: 16px;
    }

    .share-copy-btn {
        width: 100%;
    }

    .share-social-btn {
        width: 36px;
        height: 36px;
    }

    .share-social-btn svg {
        width: 18px;
        height: 18px;
    }
}
