/*
 * Shared website widgets (site-templates/shared/widgets). Theme-neutral: every colour is a --w-* variable.
 * The defaults come from packages/ui tokens; a template maps its own palette onto --w-* (see sna-classic).
 */
:root {
  --w-green: #8dc63f;
  --w-ink: var(--sn-text, #0f1a17);
  --w-line: var(--sn-border, #e3e8e6);
  --w-muted: var(--sn-text-muted, #55635e);
  --w-orange: #f58220;
  --w-orange-dark: #c45a00;
  --w-orange-soft: #fff4e8;
  --w-pink: #ed5591;
  --w-primary: var(--sn-primary, #059669);
  --w-primary-dark: var(--sn-primary-hover, #047857);
  --w-primary-darker: color-mix(in srgb, var(--w-primary) 45%, #000);
  --w-primary-soft: var(--sn-primary-soft, color-mix(in srgb, var(--w-primary) 7%, #fff));
  --w-yellow: #fbb040;
}

/* Icon sizes the React page took from Tailwind (w-4, w-5). */
.landing-icon-sm {
  width: 1rem;
  height: 1rem;
}
.landing-icon-md {
  width: 1.25rem;
  height: 1.25rem;
}
/* ── Section backgrounds, chained ── */
.sn-sec--mint-down {
  background: linear-gradient(180deg, color-mix(in srgb, var(--w-primary) 6%, #fff) 0%, #ffffff 100%);
}
.sn-sec--warm-down {
  background: linear-gradient(180deg, #ffffff 0%, var(--w-orange-soft) 100%);
}
.sn-sec--warm-up {
  background: linear-gradient(180deg, var(--w-orange-soft) 0%, #ffffff 100%);
}
.sn-sec--mint-up {
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--w-primary) 6%, #fff) 100%);
}
.sn-sec--mint {
  background: color-mix(in srgb, var(--w-primary) 6%, #fff);
}
/* ── Card, chip, tones ── */
.sn-grid {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .sn-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .sn-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sn-card {
  background: #fff;
  border: 1px solid var(--w-line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}
.sn-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--w-ink);
  margin-bottom: 0.45rem;
}
.sn-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--w-muted);
}
.sn-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.sn-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--w-primary-soft);
  color: var(--w-primary);
}
.sn-card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.sn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--w-primary-soft);
  color: var(--w-primary-dark);
}
.sn-chip svg {
  width: 0.9rem;
  height: 0.9rem;
}

.sn-tone--blue {
  --tone: var(--w-primary);
  --tone-soft: var(--w-primary-soft);
  --tone-ink: var(--w-primary-dark);
}
.sn-tone--green {
  --tone: var(--w-green);
  --tone-soft: rgb(141 198 63 / 0.14);
  --tone-ink: #4d7f17;
}
.sn-tone--orange {
  --tone: var(--w-orange);
  --tone-soft: rgb(245 130 32 / 0.12);
  --tone-ink: var(--w-orange-dark);
}
.sn-tone--pink {
  --tone: var(--w-pink);
  --tone-soft: rgb(237 85 145 / 0.12);
  --tone-ink: #b8306a;
}
.sn-tone--yellow {
  --tone: var(--w-yellow);
  --tone-soft: rgb(251 176 64 / 0.16);
  --tone-ink: #9a6200;
}
.sn-tone--navy {
  --tone: var(--w-primary-dark);
  --tone-soft: var(--w-primary-soft);
  --tone-ink: var(--w-primary-darker);
}
.sn-checks {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
.sn-checks li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--w-ink);
}
.sn-checks svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--w-primary);
}
.sn-facts {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--w-line);
}
.sn-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.sn-facts dt {
  color: var(--w-muted);
}
.sn-facts dd {
  font-weight: 700;
  color: var(--w-ink);
  text-align: right;
}
.sn-block-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
}
.sn-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--w-primary) !important;
}
.sn-link svg {
  width: 0.9rem;
  height: 0.9rem;
}
.sn-form {
  display: grid;
  gap: 1rem;
}
.sn-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}
.sn-field-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .sn-field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.sn-field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--w-ink);
}
.sn-optional {
  font-weight: 500;
  color: var(--w-muted);
}
.sn-field input,
.sn-field select,
.sn-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  background: #fff;
  font-size: 1rem;
  color: var(--w-ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.sn-field textarea {
  resize: vertical;
  min-height: 6rem;
}
.sn-field input:focus,
.sn-field select:focus,
.sn-field textarea:focus {
  outline: none;
  border-color: var(--w-primary);
  box-shadow: 0 0 0 3px var(--w-primary-soft);
}
.sn-field [aria-invalid="true"] {
  border-color: #dc2626;
}
.sn-field-error {
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c;
}
.sn-form .sn-block-btn {
  margin-top: 0;
}
.sn-form-status:empty {
  display: none;
}
.sn-form-status {
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.sn-form-status.is-ok {
  background: color-mix(in srgb, var(--w-primary) 7%, #fff);
  color: color-mix(in srgb, var(--w-primary) 60%, #000);
}
.sn-form-status.is-error {
  background: #fef2f2;
  color: #991b1b;
}
.sn-form-note {
  font-size: 0.8rem !important;
  text-align: center;
}

/* Payment banner (PaymentBannerStrip): "Pay securely with …" and quiet text chips. Light by default; a dark
   footer sets color on .pay-banner and the chips follow it. */
.pay-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  font-size: 13px;
}
.pay-banner-label {
  margin: 0;
  font-weight: 500;
}
.pay-banner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pay-banner-chip {
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 6px;
  line-height: 1.4;
  white-space: nowrap;
}
.pay-banner-img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 48px;
}
