:root {
  --coat-ea-ink: var(--coat-ink, #11110f);
  --coat-ea-bg: var(--coat-bg, #f5f1ea);
  --coat-ea-soft: var(--coat-soft, #efebe4);
  --coat-ea-line: var(--coat-line, #d8d2c8);
  --coat-ea-muted: var(--coat-muted, #756e65);
}

.woocommerce ul.products li.product,
.coat-product-card {
  position: relative;
}


.coat-product-card.coat-ea-product-card::before {
  content: "Early access";
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 14px;
  padding: 7px 9px 6px;
  background: rgba(17, 17, 15, .94);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.coat-product-card.coat-ea-product-scheduled::before {
  content: "Coming soon";
}

.coat-product-card.coat-ea-product-sold-out::before {
  content: "Allocation complete";
}

.coat-product-card.coat-ea-product-live .coat-product-card__badge,
.coat-product-card.coat-ea-product-sold-out .coat-product-card__badge {
  display: none;
}

.coat-ea-unsubscribed {
  padding: 12px 20px;
  border-bottom: 1px solid var(--coat-ea-line);
  background: #fff;
  color: var(--coat-ea-ink);
  font-size: 11px;
  text-align: center;
}

.coat-ea-loop-badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  padding: 7px 9px 6px;
  background: rgba(17, 17, 15, .94);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.coat-ea-product-panel {
  margin: 24px 0 20px;
  padding: 20px 0;
  border-top: 1px solid var(--coat-ea-line);
  border-bottom: 1px solid var(--coat-ea-line);
}

.coat-ea-product-panel__heading,
.coat-ea-product-panel__price,
.coat-ea-product-panel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.coat-ea-product-panel__heading > span,
.coat-ea-kicker {
  color: var(--coat-ea-ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.coat-ea-product-panel time {
  color: var(--coat-ea-muted);
  font-size: 10px;
}

.coat-ea-product-panel__price {
  justify-content: flex-start;
  margin-top: 14px;
}

.coat-ea-product-panel__price strong {
  font-size: 22px;
  font-weight: 500;
}

.coat-ea-product-panel__price > span {
  color: var(--coat-ea-muted);
  font-size: 12px;
  text-decoration: line-through;
}

.coat-ea-product-panel > p {
  max-width: 560px;
  margin: 13px 0 0;
  color: var(--coat-ea-muted);
  font-size: 12px;
  line-height: 1.65;
}

.coat-ea-product-panel__meta {
  justify-content: flex-start;
  margin-top: 18px;
}

.coat-ea-product-panel__meta > span {
  min-width: 145px;
  display: grid;
  gap: 4px;
  color: var(--coat-ea-ink);
  font-size: 11px;
}

.coat-ea-product-panel__meta small {
  color: var(--coat-ea-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.coat-ea-progress {
  height: 2px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--coat-ea-line);
}

.coat-ea-progress span {
  height: 100%;
  display: block;
  background: var(--coat-ea-ink);
}

.coat-ea-cart-note,
.coat-ea-checkout-note {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--coat-ea-line);
  background: #fff;
}

.coat-ea-cart-note span,
.coat-ea-checkout-note strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.coat-ea-cart-note p,
.coat-ea-checkout-note span {
  margin: 8px 0 0;
  color: var(--coat-ea-muted);
  font-size: 12px;
  line-height: 1.55;
}

.coat-ea-acknowledgement {
  margin: 20px 0 !important;
  padding: 16px 0;
  border-top: 1px solid var(--coat-ea-line);
  border-bottom: 1px solid var(--coat-ea-line);
}

.coat-ea-acknowledgement label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.coat-ea-waitlist {
  margin-top: 18px;
}

.coat-ea-waitlist__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.coat-ea-waitlist:not(.coat-ea-waitlist--compact) .coat-ea-waitlist__fields {
  grid-template-columns: minmax(130px, .55fr) minmax(190px, 1fr) auto;
}

.coat-ea-waitlist label {
  display: grid;
  gap: 6px;
}

.coat-ea-waitlist label > span:not(.screen-reader-text) {
  color: var(--coat-ea-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.coat-ea-waitlist input[type="text"],
.coat-ea-waitlist input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--coat-ea-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.coat-ea-waitlist button,
.coat-ea-editorial-release__actions > a {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--coat-ea-ink);
  border-radius: 0;
  background: var(--coat-ea-ink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.coat-ea-waitlist__consent {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  margin-top: 9px;
}

.coat-ea-waitlist__consent > span {
  color: var(--coat-ea-muted) !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.5;
  text-transform: none !important;
}

.coat-ea-waitlist__response {
  margin: 8px 0 0;
  color: var(--coat-ea-muted);
  font-size: 10px;
}

.coat-ea-waitlist.is-complete .coat-ea-waitlist__fields,
.coat-ea-waitlist.is-complete .coat-ea-waitlist__consent {
  display: none;
}

.coat-ea-launch-bar {
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  background: var(--coat-ea-ink);
  color: #fff;
}

.coat-ea-launch-bar[hidden] {
  display: none;
}

.coat-ea-launch-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 9px 20px;
  color: inherit;
  font-size: 10px;
  text-decoration: none;
}

.coat-ea-launch-bar time {
  color: rgba(255,255,255,.65);
  font-size: 9px;
}

.coat-ea-launch-bar button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.coat-ea-editorial-release {
  padding: clamp(42px, 7vw, 90px);
  border: 1px solid var(--coat-ea-line);
  background: var(--coat-ea-bg);
}

.coat-ea-editorial-release h2 {
  max-width: 850px;
  margin: 8px 0 0;
  font-size: clamp(42px, 7vw, 90px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
}

.coat-ea-editorial-release > p:not(.coat-ea-kicker) {
  max-width: 600px;
  color: var(--coat-ea-muted);
  line-height: 1.65;
}

.coat-ea-editorial-release__actions {
  margin-top: 28px;
}

.coat-ea-editorial-release__actions > a {
  display: inline-grid;
  place-items: center;
}

.coat-ea-order-progress {
  margin: 0 0 32px;
  padding: 24px;
  border: 1px solid var(--coat-ea-line);
  background: var(--coat-ea-bg);
}

.coat-ea-order-progress header > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.coat-ea-order-progress h2 {
  margin: 6px 0 22px;
  font-size: 28px;
  font-weight: 500;
}

.coat-ea-order-progress ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.coat-ea-order-progress li {
  position: relative;
  display: grid;
  gap: 9px;
  padding-right: 8px;
  color: var(--coat-ea-muted);
  font-size: 9px;
}

.coat-ea-order-progress li::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 0;
  left: 8px;
  height: 1px;
  background: var(--coat-ea-line);
}

.coat-ea-order-progress li > span {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 1px solid var(--coat-ea-line);
  border-radius: 50%;
  background: var(--coat-ea-bg);
}

.coat-ea-order-progress li.is-complete > span {
  border-color: var(--coat-ea-ink);
  background: var(--coat-ea-ink);
}

.coat-ea-order-progress li.is-current strong {
  color: var(--coat-ea-ink);
}

@media (max-width: 767px) {
  .coat-ea-loop-badge {
    top: 9px;
    left: 9px;
  }

  .coat-ea-product-panel__heading,
  .coat-ea-product-panel__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .coat-ea-waitlist__fields,
  .coat-ea-waitlist:not(.coat-ea-waitlist--compact) .coat-ea-waitlist__fields {
    grid-template-columns: 1fr;
  }

  .coat-ea-waitlist button {
    min-height: 48px;
  }

  .coat-ea-launch-bar a {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .coat-ea-order-progress {
    overflow-x: auto;
  }

  .coat-ea-order-progress ol {
    min-width: 620px;
  }
}

/* =========================================================
   V1.1 restrained storefront presentation
   ========================================================= */
.coat-product-card.coat-ea-product-card::before,
.coat-ea-loop-badge {
  top: 12px;
  left: 12px;
  padding: 6px 8px 5px;
  border: 1px solid rgba(17, 17, 15, .18);
  background: rgba(247, 244, 238, .94);
  color: var(--coat-ea-ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.coat-product-card.coat-ea-product-scheduled::before {
  content: "Coming soon";
}

.coat-product-card.coat-ea-product-sold-out::before {
  content: "Allocation complete";
}

.coat-ea-product-panel {
  margin: 18px 0 16px;
  padding: 16px 0;
}

.coat-ea-product-panel__heading {
  justify-content: flex-start;
}

.coat-ea-product-panel__heading time {
  margin-left: auto;
}

.coat-ea-product-panel__price {
  margin-top: 10px;
}

.coat-ea-product-panel__price strong {
  font-size: 18px;
}

.coat-ea-product-panel > p {
  margin-top: 10px;
  font-size: 11px;
}

.coat-ea-product-panel__meta {
  margin-top: 13px;
}

.coat-ea-cart-note,
.coat-ea-checkout-note {
  padding: 15px 0;
  border-width: 1px 0;
  background: transparent;
}

@media (max-width: 767px) {
  .coat-product-card.coat-ea-product-card::before,
  .coat-ea-loop-badge {
    top: 8px;
    left: 8px;
    padding: 5px 6px 4px;
    font-size: 7px;
  }

  .coat-ea-product-panel__heading,
  .coat-ea-product-panel__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .coat-ea-product-panel__heading time {
    margin-left: 0;
  }
}

/* V1.1.1: guarantee badges inside custom Coathreads product cards. */
.coat-product-card.coat-ea-badge-injected::before {
  content: none !important;
  display: none !important;
}

.coat-product-card__media > .coat-ea-loop-badge--injected {
  position: absolute;
  z-index: 7;
  top: 12px;
  left: 12px;
  margin: 0;
}

.woocommerce ul.products li.product > .coat-ea-loop-badge--injected {
  position: absolute;
  z-index: 7;
  top: 12px;
  left: 12px;
}

@media (max-width: 767px) {
  .coat-product-card__media > .coat-ea-loop-badge--injected,
  .woocommerce ul.products li.product > .coat-ea-loop-badge--injected {
    top: 8px;
    left: 8px;
  }
}
