/* ==========================================================================
   Silk — checkout page.
   Loads on top of styles.css and adds nothing to it: every class here starts
   with c- so this file can never restyle the sales pages. The page has one
   job, so it carries one headline, the cart, and the three things people
   check before they type a card number. No second sell.
   ========================================================================== */

.c-page [hidden] { display: none !important; }
.c-main { padding-bottom: clamp(32px, 5vw, 56px); }

/* --------------------------------------------------------------------------
   Block 01 — the one line above the cart.
   -------------------------------------------------------------------------- */
.c-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(28px, 5vw, 52px) 0; }
.c-h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 16ch; }
.c-lead { margin-top: 12px; max-width: 44ch; }

/* --------------------------------------------------------------------------
   Block 02 — the cart itself.
   ThriveCart injects its own wrapper and iframe into .tc-v2-embeddable-target
   and resizes the iframe to its content, so the only job here is to give it a
   column, keep it from jumping, and show something while it loads. Their
   stylesheet lands at runtime and outranks a bare class, so the rules that
   have to hold are scoped through the target.
   -------------------------------------------------------------------------- */
/* Two columns once there is room for both: the cart at its natural 700px, the
   quotes in the space it was leaving empty either side. 700 + 28 + 300 = 1028,
   inside the 1040 wrap. Below that they stack, cart first. */
.c-cols { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
@media (min-width: 1100px) {
  .c-cols { grid-template-columns: minmax(0, 700px) minmax(240px, 300px); justify-content: center; align-items: start; gap: 28px; }
}
.c-col-main { min-width: 0; }

.c-cart-sec { display: flex; justify-content: center; padding-top: clamp(22px, 3.5vw, 34px); }
.c-cart { position: relative; width: 100%; max-width: 700px; min-height: 440px; }

.c-cart .tc-v2-embeddable-target { display: block; width: 100%; }
.c-cart .tc-v2-embeddable-target iframe { display: block; width: 100%; border: 0; }

/* The waiting state sits behind the cart and is removed as soon as it lands. */
.c-cart-wait { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border-radius: 22px; background: var(--ivory); border: 1px solid var(--line); }
.c-wait-t { font-size: .95rem; color: var(--text-3); }
.c-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(106, 85, 232, .22); border-top-color: var(--amethyst); animation: c-spin 1s linear infinite; }
@keyframes c-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .c-spin { animation-duration: 3s; } }

/* --------------------------------------------------------------------------
   The three reassurances under the cart, then the way back.
   -------------------------------------------------------------------------- */
.c-trust-sec { padding-top: clamp(30px, 4.5vw, 46px); }
.c-trust { list-style: none; margin: 0 auto; padding: 0; max-width: 700px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.c-trust li { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 20px 16px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); text-align: center; }
.c-trust b { font-size: .98rem; color: var(--ink); line-height: 1.3; }
.c-trust span:last-child { font-size: .88rem; color: var(--text-2); line-height: 1.5; }
.c-t-ic { width: 30px; height: 30px; color: var(--amethyst); }
.c-t-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.c-back { margin: clamp(22px, 3vw, 30px) 0 0; text-align: center; font-size: .9rem; color: var(--text-3); }
.c-back a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.c-back a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Block 03 — our Trustpilot reviews, word for word, each linking to the
   original. Static HTML, so they add no scripts to a page that waits on a cart.
   -------------------------------------------------------------------------- */
.c-quotes { padding-top: clamp(22px, 3.5vw, 34px); }
@media (min-width: 1100px) {
  /* The cart is tall, so the quotes follow you down it. */
  .c-quotes { position: sticky; top: 24px; }
}
/* Trustpilot reviews (2026-11-02). Their green is used only for the stars image. */
.tp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; text-decoration: none; color: var(--ink); }
.tp-logo { display: block; height: 26px; width: auto; }
.tp-head-t { display: flex; flex-direction: column; font-size: .82rem; line-height: 1.3; }
.tp-head-t b { font-weight: 700; }
.tp-head-t span { color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }
.tp-head:hover .tp-head-t span { color: var(--ink); }
.tp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 641px) and (max-width: 1099px) { .tp-list { grid-template-columns: repeat(2, 1fr); } }
.tp-card { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.tp-who { display: flex; align-items: center; gap: 10px; }
.tp-av { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #eceae4; }
.tp-av-i { display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #4b4a45; background: #e9e1f5; }
.tp-who b { display: block; font-size: .88rem; color: var(--ink); }
.tp-who small { display: block; font-size: .74rem; color: var(--text-3); }
.tp-stars { display: block; width: 96px; height: auto; margin-top: 12px; }
.tp-title { margin: 10px 0 0; font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--ink); letter-spacing: 0; }
.tp-text { margin: 6px 0 0; font-size: .9rem; line-height: 1.5; color: var(--text-2, var(--ink)); }
.tp-src { margin-top: 10px; font-size: .76rem; color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }
.tp-src:hover { color: var(--ink); }
/* The short strip under the heading: on phones the reviews sit below a tall cart. */
.tp-strip { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-top: 16px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .84rem; font-weight: 600; }
.tp-strip img { display: block; height: auto; }
.tp-strip:hover { border-color: var(--text-3); }
/* On wide screens the reviews sit right beside the cart, so the strip would only repeat them. */
@media (min-width: 1100px) { .tp-strip { display: none; } }

/* --------------------------------------------------------------------------
   Footer.
   -------------------------------------------------------------------------- */
.c-foot { max-width: var(--max); margin-inline: auto; padding-block: 24px 30px; margin-top: clamp(30px, 5vw, 56px); border-top: 1px solid var(--line); text-align: center; }
.c-foot p { margin: 0; font-size: .82rem; color: var(--text-3); }
.c-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.c-foot a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Phones. The three reassurances stack, and the cart loses its rounded
   waiting card so it can use the full width.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .c-trust { grid-template-columns: 1fr; }
  .c-trust li { flex-direction: row; align-items: flex-start; gap: 12px; text-align: left; padding: 16px; flex-wrap: wrap; }
  .c-t-ic { flex: none; width: 24px; height: 24px; }
  .c-trust b { flex: 1 1 auto; }
  .c-trust span:last-child { flex: 1 0 100%; padding-left: 36px; }
  .c-cart { min-height: 520px; }
}
