/*
 * R27 Share — social share buttons for product pages.
 * Self-contained: only depends on r27-share.js. No external SDKs.
 */

.r27-share {
    position: relative;
}

.r27-share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Doubled class beats generic theme resets such as `.r27-shell button` */
.r27-share .r27-share-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e3ddd2;
    border-radius: 50%;
    background: #fff;
    color: #5c5a55;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.r27-share-btn[hidden] {
    display: none;
}

.r27-share-btn svg {
    width: 16px;
    height: 16px;
}

.r27-share .r27-share-btn:hover,
.r27-share .r27-share-btn:focus-visible {
    border-color: #b0976d;
    background: #b0976d;
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

.r27-share .r27-share-btn.is-done {
    border-color: #78613b;
    background: #78613b;
    color: #fff;
}

.r27-share-toast {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    padding: 6px 12px;
    border-radius: 2px;
    background: #242529;
    color: #f5f2ec;
    font-size: .6875rem;
    letter-spacing: .04em;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.r27-share-toast.is-show {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .r27-share-btn,
    .r27-share-toast { transition: none; }
}
