/* Share bars (partials/share.js and partials/share-product.js).
   Extracted from tools.css because product and collection pages use the same
   bar: a share button that looks different on two pages of one shop reads as
   a bug. */

.share { margin-top: 26px; padding: 14px 16px; background: var(--field-strong); border: var(--outline); box-shadow: var(--offset-sm); }
.share__title { margin: 0 0 10px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 22px; text-transform: uppercase; }
.share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.share__btn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--ink)); }
.share__btn:hover { color: var(--ink); background: var(--amber); }
.share__btn--facebook { --dot: #1877f2; }
.share__btn--whatsapp { --dot: #25d366; }
.share__btn--telegram { --dot: #27a7e7; }
.share__btn--x { --dot: #111; }
.share__btn--native { --dot: var(--orange); }
.share__btn--copy { --dot: var(--orange); }
.share__link { display: block; margin-top: 10px; }
.share__link .input { width: 100%; font-size: 13px; color: var(--ink-soft); }

/* Inside `.panel` (product and collection pages) the bar is a <details> that
   opens in place, so it must not draw a second box on top of the panel's own
   border. The tools' standalone box keeps the default above. */
.share-panel { margin: 0; padding: 0; box-shadow: none; }
.share-panel > summary {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 10px; cursor: pointer; list-style: none;
}
.share-panel > summary::-webkit-details-marker { display: none; }
.share-panel > summary h2 { margin: 0; }
.share-panel > summary h2::before { content: '+ '; color: var(--orange); }
.share-panel[open] > summary h2::before { content: '− '; }
.share-panel .share__link .input { min-height: 40px; }

/* The share link is a real field: on a phone the copy button is the point, and
   tapping the field selects the whole URL for a manual copy. */
@media (max-width: 560px) {
  .share-panel .share__btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

.collection__share { margin-top: 26px; }
