/* The share sheet (front.inc.share_sheet; products::product_v2, shops::shop_v2): a small dialog, a bottom sheet on phones. */
.gp-share .modal-dialog { max-width: 420px; }
.gp-share .modal-content { padding: 16px; border: 0; border-radius: var(--gz-radius-xl); font-family: var(--gz-font); }
.gp-share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gp-share-title { margin: 0; font-size: 16px; font-weight: 800; }
.gp-share-close {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0;
    border-radius: 50%; background: var(--gz-surface-2); color: var(--gz-ink-2); font-size: 18px; cursor: pointer;
}
.gp-share-product { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--gz-radius-md); background: var(--gz-surface-2); }
.gp-share-product img { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--gz-radius-sm); object-fit: contain; background: #fff; }
.gp-share-product span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-share-product b { overflow: hidden; font-size: 13.5px; line-height: 1.8; white-space: nowrap; text-overflow: ellipsis; }
.gp-share-product small { color: var(--gz-ink-3); font-size: 12.5px; }
.gp-share-link { display: flex; gap: 6px; margin-top: 12px; padding: 5px; border: 1px solid var(--gz-border); border-radius: var(--gz-radius-md); }
.gp-share-link input { flex: 1; min-width: 0; padding: 0 8px; border: 0; background: none; color: var(--gz-ink-2); font-size: 13px; outline: 0; }
.gp-share-copy {
    display: inline-flex; flex-shrink: 0; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border: 0;
    border-radius: var(--gz-radius-sm); background: var(--gz-brand-500); color: #fff; font: 700 13px var(--gz-font); cursor: pointer;
    transition: background var(--gz-fast);
}
.gp-share-copy.is-done { background: var(--gz-success); }
.gp-share-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin-top: 16px; }
.gp-share-app[hidden] { display: none; }
.gp-share-app {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none;
    color: var(--gz-ink-2) !important; font: 12px var(--gz-font); cursor: pointer;
}
.gp-share-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
    color: #fff; font-size: 22px; transition: transform var(--gz-fast);
}
.gp-share-app:hover .gp-share-icon { transform: translateY(-2px); }
.gp-share-icon.is-telegram { background: #2AABEE; }
.gp-share-icon.is-whatsapp { background: #25D366; }
.gp-share-icon.is-sms { background: var(--gz-brand-500); }
.gp-share-icon.is-x { background: #111; }
.gp-share-icon.is-more { background: var(--gz-surface-3); color: var(--gz-ink); }
@media (max-width: 575.98px) {
    .gp-share .modal-dialog { align-items: flex-end; min-height: 100%; margin: 0; max-width: none; }
    .gp-share .modal-content { padding-bottom: calc(16px + env(safe-area-inset-bottom)); border-radius: var(--gz-radius-xl) var(--gz-radius-xl) 0 0; }
    .gp-share.fade .modal-dialog { transform: translateY(40px); }
    .gp-share.show .modal-dialog { transform: none; }
}
