/* UI Email Templates — named message recipes */

/* Shared inbox chrome around each message */
.et-frame {
  max-width: 36rem;
  margin-inline: auto;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgb(26 35 50 / 0.1);
}

.et-frame__chrome {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #f7f9fc;
  font-size: 0.8125rem;
}

.et-frame__row {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.et-frame__label {
  color: var(--ink-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
}

.et-frame__value {
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

.et-frame__value--muted {
  font-weight: 500;
  color: var(--ink-muted);
}

.et-mail {
  padding: 1.5rem 1.35rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

.et-mail__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.et-mail__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.et-mail__brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.et-mail__brand-meta {
  display: block;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
}

.et-mail h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.et-mail p {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
}

.et-mail p:last-child {
  margin-bottom: 0;
}

.et-mail strong {
  color: var(--ink);
  font-weight: 700;
}

.et-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0 1rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background var(--motion);
}

.et-cta:hover {
  background: var(--accent-deep);
  color: #fff;
}

.et-cta--danger {
  background: var(--danger);
}

.et-cta--danger:hover {
  background: #912018;
}

.et-cta--secondary {
  background: #fff;
  color: var(--accent-deep);
  border: 1px solid var(--border-strong);
}

.et-cta--secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.et-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 1rem;
}

.et-cta-row .et-cta {
  margin: 0;
}

.et-footnote {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.et-footnote a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.et-panel {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f9fc;
}

.et-panel--success {
  border-color: #abefc6;
  background: var(--success-soft);
}

.et-panel--warn {
  border-color: #fedf89;
  background: var(--warn-soft);
}

.et-panel--danger {
  border-color: #fecdca;
  background: var(--danger-soft);
}

.et-panel--info {
  border-color: #b2ddff;
  background: var(--info-soft);
}

.et-panel__label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink-faint);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.et-panel__value {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.et-panel__meta {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.et-code {
  display: inline-block;
  margin: 0.25rem 0 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.et-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.et-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.et-list li:last-child {
  border-bottom: 0;
}

.et-list__name {
  color: var(--ink);
  font-weight: 600;
}

.et-list__price {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.et-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0 0;
  border-top: 2px solid var(--ink);
  font-weight: 800;
}

.et-steps {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.et-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.et-step__dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.6875rem;
  font-weight: 800;
}

.et-step.is-done .et-step__dot {
  background: var(--accent);
  color: #fff;
}

.et-step.is-current .et-step__dot {
  background: var(--info);
  color: #fff;
}

.et-step__text {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.et-step__text strong {
  display: block;
  color: var(--ink);
  font-size: 0.875rem;
}

.et-digest-item {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.et-digest-item:last-of-type {
  margin-bottom: 1rem;
}

.et-digest-item__kicker {
  color: var(--accent-deep);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.et-digest-item__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.et-digest-item__blurb {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.et-hero-strip {
  margin: -0.15rem -1.35rem 1.15rem;
  padding: 1.35rem 1.35rem;
  background:
    linear-gradient(135deg, #0d7a6f 0%, #0a5f6e 55%, #1a3a5c 100%);
  color: #fff;
}

.et-hero-strip h3 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.et-hero-strip p {
  margin: 0;
  color: rgb(255 255 255 / 0.88);
}

.et-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.et-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

@media (max-width: 28rem) {
  .et-meta-grid {
    grid-template-columns: 1fr;
  }

  .et-mail {
    padding: 1.15rem 1rem 1rem;
  }

  .et-hero-strip {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
}

/* Pattern-specific accents */
.et-welcome .et-mail__mark {
  background: linear-gradient(145deg, #0d7a6f, #0a5f6e);
}

.et-verify .et-code {
  letter-spacing: 0.35em;
}

.et-reset .et-panel {
  margin-top: 0.25rem;
}

.et-invite .et-org {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f9fc;
}

.et-invite .et-org__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #1a3a5c;
  color: #fff;
  font-weight: 800;
}

.et-invite .et-org strong {
  display: block;
  font-size: 0.9375rem;
}

.et-invite .et-org span {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.et-shipping .et-track {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--info);
  word-break: break-all;
}

.et-booking .et-cal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f9fc;
}

.et-booking .et-cal__date {
  display: grid;
  place-items: center;
  min-width: 3.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  line-height: 1.15;
}

.et-booking .et-cal__month {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.et-booking .et-cal__day {
  font-size: 1.35rem;
  font-weight: 800;
}

.et-booking .et-cal__title {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.et-booking .et-cal__meta {
  margin: 0.15rem 0 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.et-invoice .et-invoice-id {
  margin: 0 0 0.85rem;
  color: var(--ink-faint);
  font-size: 0.8125rem;
  font-weight: 700;
}

.et-security .et-mail__mark {
  background: var(--danger);
}

.et-digest .et-mail__mark {
  background: #1a3a5c;
}

/* Image-rich / logo templates */

.et-mail--flush {
  padding-top: 0;
}

.et-logo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.et-logo-bar img {
  height: 2rem;
  width: auto;
}

.et-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #d5dce6;
}

.et-photo--hero {
  aspect-ratio: 16 / 9;
  max-height: 14rem;
}

.et-photo--product {
  aspect-ratio: 4 / 3;
  max-height: 13rem;
  border-radius: 10px;
}

.et-photo--portrait {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.et-photo--thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.et-photo--screen {
  aspect-ratio: 16 / 10;
  max-height: 12rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.et-bleed {
  margin: 0 -1.35rem 1.15rem;
}

.et-bleed .et-photo {
  border-radius: 0;
}

@media (max-width: 28rem) {
  .et-bleed {
    margin-inline: -1rem;
  }
}

.et-caption {
  margin: 0.45rem 0 0;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
}

.et-quote {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.et-quote p {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  font-style: italic;
}

.et-quote footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-style: normal;
}

.et-quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.et-faces {
  display: flex;
  align-items: center;
}

.et-faces img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -0.45rem;
  background: #d5dce6;
}

.et-faces img:first-child {
  margin-left: 0;
}

.et-card-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f9fc;
}

.et-card-row__title {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  font-size: 0.9375rem;
}

.et-card-row__meta {
  margin: 0.2rem 0 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.et-promo-hero .et-mail h3 {
  margin-top: 0.15rem;
}

.et-product-shot .et-price {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.et-product-shot .et-price span {
  margin-left: 0.35rem;
  color: var(--ink-faint);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: line-through;
}

.et-event .et-event-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
}

.et-event .et-event-meta p {
  margin: 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.et-event .et-event-meta span {
  color: var(--ink-muted);
  font-weight: 500;
}

.et-launch .et-badge-new {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
