/* Product Share Section Styles */
.product-share-wrapper {
    margin-top: 1.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #6c757d;
    /* Default fallback */
}

/* Button Shapes from Admin Settings */
.share-btn-rounded {
    border-radius: 8px;
}

.share-btn-circle {
    border-radius: 50%;
}

.share-btn-square {
    border-radius: 0;
}

/* Brand Colors */
.share-whatsapp {
    background-color: #25D366;
}

.share-facebook {
    background-color: #1877F2;
}

.share-telegram {
    background-color: #0088cc;
}

.share-copylink {
    background-color: #495057;
}

/* Hover Effects */
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.share-btn:active {
    transform: translateY(0);
}

/* Tooltip for Copy Link */
.position-relative {
    position: relative;
    display: inline-block;
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Tooltip arrow */
.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show tooltip manually via JS class */
.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
    top: -45px;
    /* Slight animation upward */
}