/*
 * Amendment C — owner-ruled Checkout V2 revision.
 * Loaded only by checkout/index.html after base.css.
 */

body[data-page="checkout_gquiz"] .trustbar__inner {
  min-height: 72px;
}

body[data-page="checkout_gquiz"] .trustbar__promise {
  display: flex;
  max-width: 210px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: left;
}

.trustbar__seal {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
}

.page--checkout {
  display: grid;
  gap: 18px;
}

.checkout-stack {
  gap: 18px;
}

.tier-list {
  gap: 10px;
  padding: 16px;
}

.tier-list > legend {
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.tier-option {
  grid-template-areas:
    "radio copy price"
    ". badge price";
  grid-template-columns: 24px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  min-height: 78px;
  align-items: center;
  padding: 11px 12px;
}

.tier-option > input {
  grid-area: radio;
}

.tier-option__copy {
  grid-area: copy;
  min-width: 0;
}

.tier-option__price {
  grid-area: price;
  align-self: center;
  padding-left: 8px;
}

.tier-option__badge {
  position: static;
  grid-area: badge;
  justify-self: start;
  margin-top: 4px;
  white-space: nowrap;
}

.coherence-line {
  margin: -6px 2px 0;
  padding: 0 12px;
}

.payment-section {
  display: grid;
  gap: 0;
}

.express-card {
  padding: 14px;
  background: var(--surface);
}

[data-next-express-checkout="buttons"] {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 114px;
  gap: 10px;
}

[data-next-express-checkout="buttons"]:empty::before,
[data-next-express-checkout="buttons"]:empty::after,
[data-next-express-checkout="buttons"] > [data-next-express-checkout] {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  cursor: pointer;
}

[data-next-express-checkout="buttons"]:empty::before {
  background-color: #000;
  background-image: url("../images/amendment-c/apple-pay.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 108px auto;
  content: "";
}

[data-next-express-checkout="buttons"]:empty::after {
  background-color: #ffc439;
  background-image: url("../images/amendment-c/paypal-logo.svg"), url("../images/amendment-c/paypal-text.svg");
  background-position: calc(50% - 47px) center, calc(50% + 13px) center;
  background-repeat: no-repeat;
  background-size: 18px auto, 78px auto;
  content: "";
}

[data-next-express-checkout="apple_pay"] {
  background: #000 !important;
  color: #fff !important;
}

[data-next-express-checkout="apple_pay"] > .payment-btn__logo {
  display: flex !important;
  width: 54px !important;
  height: 20px !important;
  max-width: 54px !important;
  max-height: 20px !important;
  flex: 0 0 54px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

[data-next-express-checkout="apple_pay"] > .payment-btn__logo > svg {
  display: block !important;
  width: 54px !important;
  height: 20px !important;
  max-width: 54px !important;
  max-height: 20px !important;
}

[data-next-express-checkout="apple_pay"]:empty::after {
  width: 108px;
  height: 32px;
  background-image: url("../images/amendment-c/apple-pay.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

[data-next-express-checkout="paypal"] {
  background-color: #ffc439 !important;
  color: #003087 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

[data-next-express-checkout="paypal"]:empty::after {
  width: 118px;
  height: 26px;
  background-image: url("../images/amendment-c/paypal-logo.svg"), url("../images/amendment-c/paypal-text.svg");
  background-position: 4px center, 37px center;
  background-repeat: no-repeat;
  background-size: 18px auto, 78px auto;
  content: "";
}

.divider-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 20px;
  margin: 17px 0;
  line-height: 1;
  text-align: center;
}

.divider-label > span {
  white-space: nowrap;
}

.divider-label::before,
.divider-label::after {
  width: auto;
}

/* An empty SDK child span is not a visible error. */
.payment-error,
.payment-error:not(:empty) {
  display: none;
}

.payment-error:not([hidden]):has([data-next-component="express-error-text"]:not(:empty)),
.payment-error:not([hidden]):has([data-next-component="credit-error-text"]:not(:empty)),
.payment-error:not([hidden]):not(:has(*)):not(:empty) {
  display: block;
}

.field-error:empty {
  display: none;
}

.field-error:not(:empty) {
  display: block;
}

.checkout-form-card [data-next-component="location"],
.checkout-form-card [data-next-component="location"].next-hidden {
  display: block !important;
}

.form-grid__row--card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.form-grid__row--card .form-field {
  min-width: 0;
  font-size: 12px;
}

.form-grid__row--card .input-flds,
.form-grid__row--card select {
  min-width: 0;
  padding-inline: 7px;
  font-size: 16px;
}

.form-grid__row--card .spreedly-field {
  height: var(--field-height);
  min-height: var(--field-height);
}

.form-grid__row--location {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid__row--location > :first-child {
  grid-column: 1 / -1;
}

.checkout-guarantee-microcopy {
  margin: -2px 0 0;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

.guarantee--checkout {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.guarantee__seal-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.included-system {
  display: grid;
  gap: 16px;
}

.included-system__banner {
  position: relative;
  height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.included-system__banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.included-system__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  background: linear-gradient(90deg, rgba(28, 26, 23, 0.87) 0%, rgba(28, 26, 23, 0.62) 60%, rgba(28, 26, 23, 0.2) 100%);
}

.included-system__eyebrow {
  margin: 0 0 6px;
  color: #f0b9a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.included-system__overlay h2 {
  max-width: 380px;
  margin: 0;
  color: var(--surface);
  font-size: clamp(22px, 6vw, 30px);
}

.system-layers {
  display: grid;
  gap: 14px;
}

.system-layer {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.system-layer__number {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 11px;
  place-items: center;
  border-radius: 999px;
  color: var(--surface);
  font-size: 14px;
  font-weight: 800;
}

.system-layer--fuel .system-layer__number {
  background: var(--coral);
}

.system-layer--method .system-layer__number {
  background: var(--gold);
}

.system-layer--runway .system-layer__number {
  background: var(--green);
}

.system-layer__label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-layer h3 {
  margin: 0;
  font-size: 18px;
}

.system-layer > p:not(.system-layer__label) {
  margin: 7px 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.system-layer__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.system-layer__images img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.system-layer__images--single {
  grid-template-columns: minmax(0, 240px);
}

.system-bonus-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}

.itemized-summary {
  overflow: hidden;
}

.itemized-summary__head,
.itemized-summary__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.itemized-summary__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.itemized-summary__head h2,
.itemized-summary__head span {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.itemized-summary__row {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.itemized-summary__item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.itemized-summary__item img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.itemized-summary__item strong,
.itemized-summary__item small {
  display: block;
}

.itemized-summary__item strong {
  color: var(--ink);
  font-size: 14px;
}

.itemized-summary__item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.itemized-summary__amount {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.itemized-summary__amount s {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.itemized-summary__amount--free {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.itemized-summary__row--total {
  border: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.verified-reviews {
  display: grid;
  gap: 12px;
}

.verified-reviews__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.verified-reviews__header h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.review-stars {
  flex: 0 0 auto;
  color: #d9a441;
  font-size: 13px;
  letter-spacing: 2px;
}

.review-card {
  padding: 16px;
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.review-card__photo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: cover;
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(28, 26, 23, 0.18);
}

.review-card__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #6b6152;
  color: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.review-card__user {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.review-card h3 {
  margin: 7px 0;
  font-size: 16px;
}

.review-card__duration {
  margin: 7px 0 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-card__quote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.review-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.review-card__chips span {
  padding: 2px 8px;
  border: 1px solid #e3dacd;
  border-radius: 999px;
  background: #f0eae0;
  color: #574e45;
  font-size: 10.5px;
  font-weight: 800;
}

.review-card__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.verified-badge {
  padding: 2px 8px;
  border: 1px solid #f5d9a8;
  border-radius: 999px;
  background: #fff3e0;
  color: #b4610a;
  font-size: 10.5px;
  font-weight: 800;
}

.verified-reviews__disclaimer {
  margin: -2px 0 0;
  color: #a79a8b;
  font-size: 10.5px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.site-footer__inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 24px var(--page-gutter) 30px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.site-footer a {
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 430px) {
  .form-grid__row--location {
    grid-template-columns: 1.15fr 1fr 0.85fr;
  }

  .form-grid__row--location > :first-child {
    grid-column: auto;
  }
}

@media (min-width: 480px) {
  [data-next-express-checkout="buttons"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 52px;
  }
}

@media (min-width: 1024px) {
  body[data-page="checkout_gquiz"] .trustbar__inner,
  body[data-page="checkout_gquiz"] .securebar__inner,
  .page--checkout,
  body[data-page="checkout_gquiz"] .site-footer__inner {
    width: min(100%, 820px);
  }

  .page--checkout {
    padding-top: 26px;
    padding-bottom: 58px;
  }

  .order-summary__product {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 20px;
  }

  .product-photo {
    width: 112px;
    height: 112px;
  }

  .tier-list,
  .checkout-form-card {
    padding: 20px;
  }

  .system-layer,
  .review-card {
    padding: 20px;
  }

  .system-layer__images img {
    min-height: 190px;
  }
}

/* Amendment D: tier-matched member access and text-only Staying Power. */
.tier-option__access {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.system-layer--staying-power {
  border-color: var(--green-line);
  background: var(--green-tint);
}

.system-layer--staying-power .system-layer__number {
  background: var(--green);
}

.system-layer--staying-power > p:not(.system-layer__label) {
  margin-bottom: 0;
}
