/* Footer subscribe form + customer-section share strip.
   Loaded after styles-cg-form.css to layer on existing tokens. */

/* ── Footer subscribe form ── */
.cg-theme .footer-subscribe {
  margin-top: 24px;
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.cg-theme .subscribe-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.cg-theme .subscribe-row {
  display: flex;
  gap: 8px;
}

.cg-theme .subscribe-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.cg-theme .subscribe-row input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 115, 255, 0.18);
}

.cg-theme .subscribe-row .primary-button {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}

.cg-theme .subscribe-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.cg-theme .subscribe-note[data-status="success"] {
  color: var(--green);
  font-weight: 600;
}

.cg-theme .subscribe-note[data-status="error"] {
  color: var(--rose);
  font-weight: 600;
}

/* ── Share strip ── */
.cg-theme .share-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.cg-theme .share-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cg-theme .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
  padding: 0;
}

.cg-theme .share-btn:hover {
  border-color: var(--blue);
  background: var(--soft);
  transform: translateY(-2px);
}

.cg-theme .share-btn:focus-visible {
  outline: 3px solid rgba(28, 115, 255, 0.32);
  outline-offset: 2px;
}

.cg-theme .share-btn[disabled] {
  cursor: default;
  transform: none;
}

.cg-theme .share-flash {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Dark theme ── */
.cg-theme.dark .subscribe-label {
  color: #f1f6ff;
}

.cg-theme.dark .subscribe-row input[type="email"] {
  background: rgba(15, 26, 50, 0.6);
  border-color: rgba(120, 150, 200, 0.28);
  color: #f1f6ff;
}

.cg-theme.dark .subscribe-note {
  color: #9bb3d6;
}

.cg-theme.dark .share-strip {
  border-top-color: rgba(120, 150, 200, 0.22);
}

.cg-theme.dark .share-label {
  color: #9bb3d6;
}

.cg-theme.dark .share-btn {
  background: rgba(15, 26, 50, 0.6);
  border-color: rgba(120, 150, 200, 0.28);
  color: #d7e8ff;
}

.cg-theme.dark .share-btn:hover {
  background: rgba(28, 115, 255, 0.16);
  border-color: var(--blue);
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .cg-theme .share-strip {
    margin-top: 18px;
    padding-top: 14px;
    gap: 8px;
  }

  .cg-theme .share-btn {
    width: 36px;
    height: 36px;
  }

  .cg-theme .footer-subscribe {
    max-width: 100%;
  }
}
