/* Shared product-card share action. */
.ik-product-share-host {
  position: relative !important;
}

.ik-product-share-button {
  box-sizing: border-box !important;
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 12 !important;
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(210, 216, 225, 0.95) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #111827 !important;
  box-shadow: 0 9px 24px rgba(15, 23, 42, 0.12) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer !important;
  appearance: none;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

.ik-product-share-button svg {
  width: 23px !important;
  height: 23px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
}

.ik-product-share-button:hover,
.ik-product-share-button:focus-visible,
.ik-product-share-button[aria-expanded="true"] {
  color: #b4232c !important;
  border-color: rgba(180, 35, 44, 0.35) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15), 0 0 0 3px rgba(180, 35, 44, 0.08) !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}

/* Keep an existing daily-offer badge clear of the new top-right action. */
.ik-product-share-host .ik-daily-offer-badge.offer-badge-pos-top-default {
  top: 66px !important;
}

.ik-product-share-menu {
  box-sizing: border-box;
  position: fixed;
  z-index: 10050;
  width: 224px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(210, 216, 225, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  direction: ltr;
}

.ik-product-share-menu[hidden] {
  display: none !important;
}

.ik-product-share-menu a,
.ik-product-share-menu button {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #202938;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ik-product-share-menu a:hover,
.ik-product-share-menu a:focus-visible,
.ik-product-share-menu button:hover,
.ik-product-share-menu button:focus-visible {
  background: #f3f5f8;
  color: #111827;
  outline: none;
}

.ik-product-share-menu svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ik-product-share-menu [data-share-network="whatsapp"] {
  color: #128c4a;
}

.ik-product-share-menu [data-share-network="facebook"] {
  color: #1877f2;
}

.ik-product-share-toast {
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10060;
  padding: 11px 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

@media (max-width: 767px) {
  .ik-product-share-button {
    top: 9px !important;
    right: 9px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
  }

  .ik-product-share-button svg {
    width: 20px !important;
    height: 20px !important;
  }

  .ik-product-share-host .ik-daily-offer-badge.offer-badge-pos-top-default {
    top: 54px !important;
  }

  .ik-product-share-menu {
    width: min(224px, calc(100vw - 24px));
  }
}

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