
.btn-share-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}


.share-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    width: calc(100% - 2rem);
    max-width: 440px;
    margin: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    overflow: hidden;
}

.share-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.share-modal__content {
    padding: 1.25rem;
}


.share-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.share-modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}


.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.share-modal .share-grid .share-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
}

.share-item--btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 0.35rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}


.share-icon--whatsapp { background-color: #25D366; }
.share-icon--telegram { background-color: #229ED9; }
.share-icon--email { background-color: #6b7280; }
.share-icon--qrcode { background-color: #1f2937; }


.qr-container {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.qr-container p {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.qr-image {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    background: #ffffff;
}

.is-hide {
    display: none !important;
}


.share-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 0.25rem 0.25rem 0.25rem 0.85rem;
}

.share-copy__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    color: #374151;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.share-copy__btn {
    padding: 0.5rem 1rem;
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.share-copy__btn.is-copied {
    background-color: #10b981;
}


@media (min-width: 640px) {
    .btn-share-trigger {
        width: auto;
    }

    .share-modal__content {
        padding: 1.5rem;
    }

    .share-modal__header h3 {
        font-size: 1.2rem;
    }

    .share-grid {
        gap: 1rem;
    }

    .share-item {
        font-size: 0.8rem;
    }

    .share-item:hover .share-icon {
        transform: scale(1.08);
        opacity: 0.9;
    }

    .share-icon {
        width: 54px;
        height: 54px;
    }

    .qr-image {
        width: 160px;
        height: 160px;
    }

    .share-copy__input {
        font-size: 0.85rem;
    }

    .share-copy__btn {
        font-size: 0.85rem;
        padding: 0.55rem 1.25rem;
    }
}