/**
 * Premium Share Store page
 */
.sg-ss {
  --ss-wine: #6a2345;
  --ss-plum: #2a0f24;
  --ss-ink: #1c1218;
  --ss-muted: #636366;
  --ss-line: rgba(42, 15, 36, 0.08);
  --ss-bg: #f7f7f9;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px calc(120px + env(safe-area-inset-bottom, 0px));
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  color: var(--ss-ink);
}

.sg-ss-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 56px;
  padding-top: env(safe-area-inset-top, 0px);
  margin-bottom: 8px;
}

.sg-ss-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ss-ink);
  background: #fff;
  border: 1px solid var(--ss-line);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(42, 15, 36, 0.05);
}

.sg-ss-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.sg-ss-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.sg-ss-brand span span { color: var(--ss-wine); }

.sg-ss-hero {
  text-align: center;
  padding: 8px 8px 18px;
}

.sg-ss-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ss-wine);
}

.sg-ss-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.sg-ss-lead {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ss-muted);
}

.sg-ss-card {
  background: #fff;
  border: 1px solid var(--ss-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(42, 15, 36, 0.06);
  margin-bottom: 14px;
}

.sg-ss-store-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sg-ss-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ss-wine), var(--ss-plum));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.sg-ss-store-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sg-ss-store-meta strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-ss-store-meta span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ss-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-ss-link-row {
  display: flex;
  gap: 8px;
}

.sg-ss-link-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ss-line);
  background: #fafafb;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ss-plum);
}

.sg-ss-btn {
  border: none;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.sg-ss-btn--wine {
  background: linear-gradient(135deg, var(--ss-wine), var(--ss-plum));
  color: #fff;
  box-shadow: 0 8px 18px rgba(106, 35, 69, 0.25);
}

.sg-ss-btn--primary {
  background: linear-gradient(135deg, var(--ss-wine), var(--ss-plum));
  color: #fff;
  box-shadow: 0 10px 24px rgba(106, 35, 69, 0.28);
}

.sg-ss-btn--block { width: 100%; }

.sg-ss-copied {
  margin: 10px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
}

.sg-ss-copied[hidden] { display: none !important; }

.sg-ss-qr-card { text-align: center; }

.sg-ss-qr-frame {
  display: inline-flex;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f8f4f1);
  border: 1px solid rgba(214, 177, 95, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.sg-ss-qr-frame canvas,
.sg-ss-qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}
.sg-ss-qr-status {
  margin: 10px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ss-muted);
}
.sg-ss-qr-status[hidden] { display: none !important; }

.sg-ss-qr-caption {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ss-muted);
}

.sg-ss-actions {
  display: grid;
  gap: 10px;
}

.sg-ss-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ss-line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(42, 15, 36, 0.04);
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

.sg-ss-action-ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(106, 35, 69, 0.08);
  color: var(--ss-wine);
  flex-shrink: 0;
}

.sg-ss-action-ico.wa { background: rgba(37, 211, 102, 0.12); color: #128C7E; }
.sg-ss-action-ico.fb { background: rgba(24, 119, 242, 0.12); color: #1877F2; }
.sg-ss-action-ico.store { background: rgba(42, 15, 36, 0.08); color: var(--ss-plum); }

.sg-ss-action strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sg-ss-action small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ss-muted);
}

.sg-ss-action[hidden] { display: none !important; }

body.sg-webapp-shell .sg-ss,
body.sg-product-create .sg-ss {
  background: transparent;
}
