/* From Uiverse.io by david-mohseni - https://uiverse.io/david-mohseni/brave-shrimp-86
 * MIT License, Copyright (c) david-mohseni (David Mohseni)
 */
.gita-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 20px;
}
.detail-purchase .gita-share {
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--store-surface-border, #333);
}
.detail-purchase .gita-share-label {
    flex-basis: 100%;
    text-align: center;
}
.gita-share-label {
    color: #b9c8db;
    font-size: .83rem;
    font-weight: 650;
}
.gita-share-list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.gita-share [hidden] { display: none !important; }
html:not(.gita-share-ready) .gita-share [data-share-interactive] { display: none; }
.gita-share-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 10px 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    transition: background .2s cubic-bezier(.68, -.55, .265, 1.55), color .2s ease;
}
.gita-share-facebook { --gita-share-color: #1877f2; }
.gita-share-x { --gita-share-color: #1da1f2; }
.gita-share-instagram { --gita-share-color: #e4405f; }
.gita-share-more { --gita-share-color: #165ff3; }
.gita-share-tooltip {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    width: max-content;
    max-width: 150px;
    padding: 5px 8px;
    transform: translateX(-50%);
    border-radius: 5px;
    background: var(--gita-share-color);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 10px 10px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: top .3s cubic-bezier(.68, -.55, .265, 1.55), opacity .3s ease, visibility .3s;
}
.gita-share-tooltip::before {
    position: absolute;
    content: "";
    bottom: -3px;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translateX(-50%) rotate(45deg);
    background: inherit;
}
.gita-share-icon:focus-visible,
.gita-share-icon:hover {
    background: var(--gita-share-color);
    color: #fff;
}
.gita-share-icon:is(:hover, :focus-visible) .gita-share-tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
}
.detail-purchase .gita-share-more .gita-share-tooltip {
    right: -4px;
    left: auto;
    transform: none;
}
.detail-purchase .gita-share-more .gita-share-tooltip::before {
    right: 24px;
    left: auto;
    transform: rotate(45deg);
}
.gita-share-dialog {
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 18px;
    overflow: auto;
    border: 1px solid #3a4658;
    border-radius: 16px;
    background: #1e232d;
    color: #eef3fa;
    box-shadow: 0 20px 70px #000a;
}
.gita-share-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.gita-share-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.gita-share-dialog .gita-share-dialog-header h2 { margin: 0; font-size: 1.1rem; }
.gita-share-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 1.65rem;
    cursor: pointer;
}
.gita-share-close:hover { background: #303948; }
.gita-share-dialog img {
    display: block;
    width: 100%;
    max-height: 190px;
    margin: 0 0 12px;
    object-fit: contain;
    border-radius: 8px;
    background: #11151c;
}
.gita-share-text-label { display: block; margin-bottom: 6px; color: #ced9e8; font-size: .82rem; }
.gita-share-text {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 88px;
    resize: vertical;
    padding: 10px;
    border: 1px solid #3a4658;
    border-radius: 8px;
    background: #141921;
    color: inherit;
}
.gita-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gita-share-actions :is(a, button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 11px;
    border: 1px solid #45546a;
    border-radius: 8px;
    background: #252d39;
    color: #f8faff;
    font-size: .86rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
.gita-share-actions :is(a, button):hover { background: #333e50; }
.gita-share-actions [data-share-copy] { background: #165ff3; border-color: #165ff3; }
.gita-share-actions [data-share-copy]:hover { background: #1856ca; }
.gita-share .gita-share-status { margin: 8px 0 0; color: #b9c8db; font-size: .8rem; }
.gita-share .gita-share-status:empty { margin: 0; }
@media (prefers-reduced-motion: reduce) {
    .gita-share-icon, .gita-share-tooltip { transition: none; }
}
