[data-app-id="share-product-app"] .share-product-app,
.share-product-app {
  --share-icon-svg-size: 22px;
  --share-icon-gap: 14px;
  --share-title-color: var(--color-text, #1a1a1a);
  --share-border-color: var(--color-border, #e0e0e0);
  --share-radius: var(--radius-md, 10px);
  --share-transition: var(--transition, 200ms cubic-bezier(0, 0, 0.2, 1));

  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.share-product-app__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.share-product-app--inline .share-product-app__row {
  flex-direction: row;
  align-items: center;
}

.share-product-app--inline .share-product-app__trigger {
  margin-bottom: 0.75rem;
}

.share-product-app--stacked .share-product-app__row {
 /* flex-direction: column; */
 /* align-items: flex-start; */
  gap: 0.5rem;
}

.share-product-app__title {
  margin: 0;
  font-size: var(--text-base, 1rem);
  font-weight: 400;
  color: var(--share-title-color);
  line-height: 1.4;
  white-space: nowrap;
}

.share-product-app--inline .share-product-app__title::after {
  content: ':';
}

.share-product-app--stacked .share-product-app__title::after {
  content: none;
}

.share-product-app__icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.share-product-app__icons--modal {
  gap: 6px;
  justify-content: center;
}

.share-product-app__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--share-title-color);
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--share-transition);
  -webkit-tap-highlight-color: transparent;
}

[data-app-id="share-product-app"] .share-product-app__icon,
[data-app-id="share-product-app"] .share-product-app__icon:hover,
[data-app-id="share-product-app"] .share-product-app__icon:focus,
[data-app-id="share-product-app"] .share-product-app__icon:active,
[data-app-id="share-product-app"] button.share-product-app__icon,
[data-app-id="share-product-app"] button.share-product-app__icon:hover,
[data-app-id="share-product-app"] button.share-product-app__icon:focus,
[data-app-id="share-product-app"] button.share-product-app__icon:active {
  color: var(--share-title-color);
  background: transparent;
  opacity: 1;
  text-decoration: none;
}

.share-product-app__icon:focus-visible {
  outline: 2px solid var(--color-primary, #000);
  outline-offset: 2px;
  opacity: 1;
}

.share-product-app__icon svg {
  width: var(--share-icon-svg-size);
  height: var(--share-icon-svg-size);
  flex-shrink: 0;
  pointer-events: none;
}

.share-product-app__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--share-title-color);
  font-size: var(--text-base, 1rem);
  font-weight: 400;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

[data-app-id="share-product-app"] .share-product-app__trigger,
[data-app-id="share-product-app"] .share-product-app__trigger:hover,
[data-app-id="share-product-app"] .share-product-app__trigger:focus,
[data-app-id="share-product-app"] .share-product-app__trigger:active {
  color: var(--share-title-color);
  background: transparent;
  text-decoration: none;
}

.share-product-app__trigger:focus-visible {
  outline: 2px solid var(--color-primary, #000);
  outline-offset: 2px;
}

.share-product-app__trigger-icon {
  flex-shrink: 0;
  pointer-events: none;
}

.share-product-app__trigger-text {
  pointer-events: none;
}

.share-product-app__modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.share-product-app__modal[hidden] {
  display: none;
}

.share-product-app__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.share-product-app__modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 1.25rem 1rem 1rem;
  background: var(--color-background, #ffffff);
  border: 1px solid var(--share-border-color);
  border-radius: var(--share-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.share-product-app__modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--share-radius);
  background: transparent;
  color: var(--share-title-color);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

[data-app-id="share-product-app"] .share-product-app__modal-close,
[data-app-id="share-product-app"] .share-product-app__modal-close:hover,
[data-app-id="share-product-app"] .share-product-app__modal-close:focus {
  color: var(--share-title-color);
  background: transparent;
}

.share-product-app__modal-close:focus-visible {
  outline: 2px solid var(--color-primary, #000);
  outline-offset: 2px;
}

.share-product-app__modal-title {
  margin: 0 0 1rem;
  font-size: var(--text-base, 1rem);
  font-weight: 500;
  color: var(--share-title-color);
  text-align: center;
}

.share-product-app__toast {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm, 0.875rem);
  color: var(--share-title-color);
  background: var(--color-gray-50, #f5f5f5);
  border: 1px solid var(--share-border-color);
  border-radius: var(--share-radius);
  max-width: 100%;
}

.share-product-app__toast[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .share-product-app__row {
    gap: 10px;
  }

  .share-product-app__title {
    font-size: var(--text-sm, 0.875rem);
  }

  .share-product-app__icons {
    gap: 6px;
  }

  .share-product-app__modal {
    padding: 0.75rem;
  }
}
