.product-share-wrapper {
  display: inline-block;
  position: absolute;
  right: 10px;
  top: 0px;
  z-index: 100;
}

.product-share-wrapper .share-btn-trigger {
  background: #ffffff;
  border: 1px solid #bbbfbf !important;
  border-color: #BBBFBE;
  width: 90px;
  height: 32px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  color: #4381A4 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 0 !important;
}

.product-share-wrapper .share-btn-trigger:hover {
  background: #f8fafc;
  border-color: #4381A4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 129, 164, 0.15);
  color: #31607a !important;
}

.product-share-wrapper .share-btn-trigger:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-share-wrapper .share-btn-trigger svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

.product-share-wrapper .share-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #bbbfbf !important;
  border-color: #BBBFBE !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 20px 5px;
  z-index: 1100;
  min-width: 220px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: popInPhtml 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: top right;
}

.product-share-wrapper .share-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 15px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.product-share-wrapper .share-popover-header {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 10px;
  font-family: sans-serif;
}

.product-share-wrapper .share-options-list {
  display: flex;
  flex-direction: column;
}

.product-share-wrapper .share-option-item {


  display: flex;
  align-items: center;
  width: 100%;
  height: 55px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.product-share-wrapper .share-option-item:last-child {
  border-bottom: none !important;
}


.product-share-wrapper .share-option-item:hover {
  background-color: #f8fafc;
}

.product-share-wrapper .share-option-item:hover .icon-wrapper.facebook {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.product-share-wrapper .share-option-item:hover .icon-wrapper.link {
  background: #4381A4;
  color: white;
  border-color: #4381A4;
}

.product-share-wrapper .share-option-item:hover span {
  color: #0f172a;
}

.product-share-wrapper .icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  transition: all 0.3s ease;
  font-size: 16px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.product-share-wrapper .icon-wrapper.facebook {
  color: #1877f2;
}

.product-share-wrapper .icon-wrapper.link {
  color: #4381A4;
}

.product-share-wrapper .share-option-item span {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: color 0.2s;
  font-family: sans-serif;
}

/* Custom premium toast notification */
.phtml-share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #ffffff;
  color: #666666;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: sans-serif;
}

.phtml-share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.phtml-share-toast svg {
  stroke: #10b981;
}

@keyframes popInPhtml {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
