.cgst-share-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
}

.cgst-share-inline--single {
  width: 100%;
}

.cgst-share-trigger {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.cgst-share-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  border-color: rgba(249, 115, 22, 0.45);
  color: #f97316;
}

.cgst-share-trigger__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.cgst-share-trigger__icon svg {
  width: 18px;
  height: 18px;
}

.cgst-share-trigger--archive {
  margin-left: auto;
}

.cgst-equipt-actions .cgst-share-trigger {
  min-height: 46px;
}

.cgst-share-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.cgst-share-modal.is-open {
  display: block;
}

.cgst-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(5px);
}

.cgst-share-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 620px);
  margin: 6vh auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.26);
  padding: 26px;
}

.cgst-share-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: #f8fafc;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
}

.cgst-share-modal__eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cgst-share-modal__header h3 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.1;
  color: #0f172a;
}

.cgst-share-modal__header p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

.cgst-share-preview {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
}

.cgst-share-preview__image-wrap {
  min-height: 148px;
  background: #e2e8f0;
}

.cgst-share-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cgst-share-preview__content {
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.cgst-share-preview__title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.cgst-share-preview__description {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.cgst-share-preview__url {
  font-size: 12px;
  color: #f97316;
  word-break: break-all;
}

.cgst-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.cgst-share-network {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cgst-share-network:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(249, 115, 22, 0.45);
}

.cgst-share-copybox {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cgst-share-copybox__input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
}

.cgst-share-copybox__button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: #f97316;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.cgst-share-copybox__status {
  margin-top: 10px;
  font-size: 13px;
  color: #16a34a;
  min-height: 18px;
}

html.cgst-share-modal-open,
html.cgst-share-modal-open body {
  overflow: hidden;
}

.cgst-archive-product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .cgst-share-modal__dialog {
    width: min(94vw, 620px);
    margin: 3vh auto;
    padding: 20px;
    border-radius: 20px;
  }

  .cgst-share-preview {
    grid-template-columns: 1fr;
  }

  .cgst-share-preview__content {
    padding: 0 16px 16px;
  }

  .cgst-share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cgst-share-copybox {
    grid-template-columns: 1fr;
  }

  .cgst-share-trigger {
    width: auto;
  }

  .cgst-share-trigger__icon,
  .cgst-share-trigger__icon svg {
    color: #f97316;
  }
}
