.product-share {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  z-index: 7;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(143, 23, 49, 0.82);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8f1731;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 5px 14px rgba(143, 23, 49, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.product-share svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.product-share:hover,
.product-share:focus-visible {
  color: #681021;
  background: #ffffff;
  border-color: #681021;
  box-shadow:
    0 7px 18px rgba(143, 23, 49, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  outline: none;
}

.product-share:active {
  transform: scale(0.94);
}

.product-share:disabled {
  opacity: 0.68;
  cursor: wait;
}

.product-media .product-card-share {
  right: 8px;
  bottom: 8px;
}

.pd-main-media .pd-product-share {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
}

.pd-main-media .pd-product-share svg {
  width: 20px;
  height: 20px;
}

/* Keep the gallery counter visible after the share button takes bottom-right. */
.pd-main-media .pd-image-count {
  right: auto;
  left: 12px;
}

.product-share-toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 10000;
  max-width: min(88vw, 360px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(47, 23, 28, 0.94);
  box-shadow: 0 12px 30px rgba(47, 23, 28, 0.25);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 750;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.product-share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  .product-media .product-card-share {
    right: 6px;
    bottom: 6px;
    width: 32px;
    height: 32px;
  }

  .product-media .product-card-share svg {
    width: 16px;
    height: 16px;
  }

  .pd-main-media .pd-product-share {
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
  }

  .pd-main-media .pd-product-share svg {
    width: 18px;
    height: 18px;
  }

  .pd-main-media .pd-image-count {
    left: 10px;
    bottom: 10px;
  }
}

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