/**
 * Compact per-product share control (slightly translucent).
 */
.pw-product-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid #0866a8;
  border-radius: 999px;
  background: #e8f4fc;
  color: #064a7a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.pw-product-share:hover,
.pw-product-share:focus {
  opacity: 1;
  background: #d4ebf9;
  outline: none;
  transform: translateY(-1px);
}

.pw-product-share i {
  font-size: 13px;
}

.pw-product-share--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.product-card-content .pw-product-share,
.ejector-product-card .pw-product-share,
.phub-band__body .pw-product-share,
.tag-product-card .pw-product-share {
  margin-top: 10px;
}

html[data-theme="dark"] .pw-product-share {
  background: rgba(92, 184, 245, 0.2);
  border-color: #5cb8f5;
  color: #c5e6ff;
}

/* ---------- Share chooser sheet ---------- */
.pw-share-sheet[hidden] {
  display: none !important;
}

.pw-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pw-share-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.55);
}

.pw-share-sheet__panel {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 18px 18px 22px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  animation: pw-share-up 0.22s ease;
}

@keyframes pw-share-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.pw-share-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.pw-share-sheet__header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2a4a98;
}

.pw-share-sheet__close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0 4px;
}

.pw-share-sheet__product {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #555;
}

.pw-share-sheet__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pw-share-sheet__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  color: #333;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pw-share-sheet__opt:hover {
  background: #eef6fc;
  border-color: #0b86dd;
}

.pw-share-sheet__opt i {
  font-size: 1.35rem;
  color: #0b86dd;
}

.pw-share-sheet__opt[data-pw-share="whatsapp"] i { color: #25d366; }
.pw-share-sheet__opt[data-pw-share="facebook"] i { color: #3b5998; }
.pw-share-sheet__opt[data-pw-share="linkedin"] i { color: #0077b5; }

.pw-share-sheet__copied {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #0b86dd;
  font-weight: 600;
}

@media (min-width: 640px) {
  .pw-share-sheet {
    align-items: center;
  }
  .pw-share-sheet__panel {
    border-radius: 16px;
    margin: 16px;
  }
}

html[data-theme="dark"] .pw-share-sheet__panel {
  background: #1a2332;
  color: #e8eef5;
}

html[data-theme="dark"] .pw-share-sheet__header h3 {
  color: #8ec8f5;
}

html[data-theme="dark"] .pw-share-sheet__product,
html[data-theme="dark"] .pw-share-sheet__close {
  color: #a8b4c4;
}

html[data-theme="dark"] .pw-share-sheet__opt {
  background: #151c26;
  border-color: #2d3a4d;
  color: #e8eef5;
}

html[data-theme="dark"] .pw-share-sheet__opt:hover {
  background: rgba(11, 134, 221, 0.15);
  border-color: #3aa0e8;
}
