/* Fallbacks sized to match the Adobe fonts (measured against Georgia and Arial), so text doesn't move when
   IvyPresto and Sofia Pro finish loading. Widths use em, not ch: ch is the width of "0" in whichever font is
   showing, so ch widths changed (and text re-wrapped) when the fonts arrived. 1ch was 0.597em in IvyPresto, 0.593em
   in Sofia Pro. */
@font-face { font-family: "ivypresto-fallback"; src: local("Georgia"); size-adjust: 88.1%; ascent-override: 123.7%; descent-override: 34.1%; line-gap-override: 0%; }
@font-face { font-family: "ivypresto-fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 86.5%; ascent-override: 126.1%; descent-override: 34.7%; line-gap-override: 0%; }
@font-face { font-family: "sofia-fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 101.4%; ascent-override: 106.5%; descent-override: 26.6%; line-gap-override: 0%; unicode-range: U+0000-218F, U+2200-FFFF; } /* Not arrows: Arial's are long, so → comes from the system font. */
/* ==========================================================================
   TOTM Learning skin
   Brings the course design (course-kit/styles.css) to the whole site: IvyPresto 300 headings,
   Sofia Pro body, the totm.com pastel palette, ruled lines, pill buttons and generous spacing.
   Loaded after the theme's frontend.min.css.
   ========================================================================== */
:root {
  --ink: #0a0a0a; --ink-2: #333036; --muted: #66626b; --paper: #fff;
  --lilac: #ddccff; --orchid: #f4e8f4; --pink: #ffacc6; --blush: #ffe2eb; --peach: #ffdecc; --peach-soft: #fff4f1;
  --teal: #b9e3df; --teal-soft: #e5f4f2; --mint: #9ee3b8; --mint-soft: #e3f7ea;
  --green: #34a853; --green-ink: #1d7a3a;
  --line: rgba(10,10,10,.14); --line-2: rgba(10,10,10,.28);
  --serif: "ivypresto-display", "ivypresto-fallback", Georgia, "Times New Roman", serif;
  --sans: "sofia-pro", "sofia-fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 28px; --radius-sm: 18px; --ease: cubic-bezier(.22, .8, .2, 1);
  --content: 1200px; --gutter: clamp(16px, 4vw, 40px); --section: clamp(56px, 8vw, 104px);
  --header-h: 76px;
  /* Remap the theme's own tokens to the course palette so older styles follow along */
  --totm-text: var(--ink); --totm-text-muted: var(--muted); --totm-bg: #fff; --totm-bg-alt: #fff; --totm-border: var(--ink);
  --totm-lilac: var(--lilac); --totm-pastel-lilac: var(--orchid); --totm-pink: var(--ink); --totm-pink-light: var(--pink);
  --totm-pastel-lightpink: var(--blush); --totm-peach: var(--peach); --totm-pastel-peach: var(--peach-soft); --totm-mint: var(--mint); --totm-pastel-mint: var(--mint-soft);
  --totm-radius-card: var(--radius);
}

/* Base ------------------------------------------------------------------- */
body.totm-skin { font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
.totm-skin h1, .totm-skin h2, .totm-skin h3, .totm-skin h4, .totm-skin .h1, .totm-skin .h2, .totm-skin .h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.005em; line-height: 1.1; color: inherit; }
.totm-skin h1 { font-size: clamp(44px, 6vw, 88px); margin: 0 0 24px; }
.totm-skin h2 { font-size: clamp(32px, 3.6vw, 54px); margin: 0 0 20px; }
.totm-skin h3 { font-size: clamp(24px, 2.2vw, 32px); margin: 0 0 12px; }
.totm-skin h4 { font-size: 22px; margin: 0 0 10px; }
.totm-skin h1 em, .totm-skin h2 em, .totm-skin h3 em { font-style: italic; }
.totm-skin h1.heading-1-large { font-size: clamp(48px, 6.4vw, 96px); line-height: 1.04; font-weight: 300; padding-right: 0; }
.totm-skin p { line-height: 1.6; }
.totm-skin a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.totm-skin a:hover, .totm-skin a:focus { color: var(--ink); }
.totm-skin .entry-content a:not([class]), .totm-skin .wp-block-group p a:not([class]) { text-decoration: underline; }
.totm-skin :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.totm-skin ::selection { background: var(--lilac); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.totm-kicker, .totm-skin .kicker, .totm-skin .is-style-kicker { font: 500 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }

/* Buttons: green CTA pill with black text, as in the courses */
.totm-skin .button, .totm-skin button.button, .totm-skin a.button, .totm-skin input[type=submit].button,
.totm-skin .wp-block-button__link, .totm-skin .wc-block-components-button:not(.is-link),
.totm-skin.woocommerce a.button, .totm-skin.woocommerce button.button, .totm-skin .woocommerce button.button, .totm-skin .woocommerce a.button,
.totm-skin .woocommerce input.button, .totm-skin .single_add_to_cart_button, .totm-skin .checkout-button, .totm-skin #place_order {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
  border: 1px solid var(--green) !important; border-radius: 999px !important; background: var(--green) !important; color: var(--ink) !important;
  font: 600 15px/1 var(--sans) !important; letter-spacing: 0; text-transform: none; text-decoration: none; box-shadow: none !important;
  transition: transform .3s var(--ease), background .3s, border-color .3s; cursor: pointer;
}
.totm-skin .button:hover, .totm-skin .wp-block-button__link:hover, .totm-skin .single_add_to_cart_button:hover, .totm-skin #place_order:hover,
.totm-skin.woocommerce a.button:hover, .totm-skin .woocommerce button.button:hover { transform: translateY(-2px); background: #2e9a4b !important; color: var(--ink) !important; }
.totm-skin .is-style-outline .wp-block-button__link, .totm-skin .button.is-ghost { background: transparent !important; border-color: var(--ink) !important; }
.totm-skin .is-style-outline .wp-block-button__link:hover, .totm-skin .button.is-ghost:hover { background: var(--ink) !important; color: #fff !important; }
.totm-skin .button[disabled], .totm-skin .single_add_to_cart_button:disabled { opacity: .45; }

/* Forms */
.totm-skin input[type=text], .totm-skin input[type=email], .totm-skin input[type=password], .totm-skin input[type=tel], .totm-skin input[type=number], .totm-skin input[type=search], .totm-skin select, .totm-skin textarea {
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font: 16px/1.4 var(--sans); color: var(--ink); box-shadow: none; transition: border-color .2s;
}
.totm-skin textarea { min-height: 120px; }
.totm-skin input:focus, .totm-skin select:focus, .totm-skin textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(221,204,255,.6); }
.totm-skin label { font-size: 15px; font-weight: 500; color: var(--ink); }

/* Top bar ---------------------------------------------------------------- */
.totm-skin .totm-top-bar { background: var(--teal); color: var(--ink); font: 500 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 10px 0; }
.totm-skin .totm-top-bar:has(.promo-slider:empty), .totm-skin .totm-top-bar:not(:has(.promo-slider)) { display: none; }
.totm-skin .totm-top-bar a { color: var(--ink); font-weight: 700; text-decoration: none; } /* an underline showed at the edge of the bar from the message waiting to slide in */
.totm-skin .totm-top-bar a:hover, .totm-skin .totm-top-bar a:focus-visible { text-decoration: underline; }
.totm-skin .totm-top-bar .slick-list { overflow: hidden; }

/* Header ----------------------------------------------------------------- */
.totm-skin .site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ink); padding: 0; }
.admin-bar.totm-skin .site-header { top: 32px; }
/* Sticky bars further down the page (e.g. the course filters) sit just below the sticky header. */
.totm-skin { --totm-sticky-offset: var(--header-h); }
.admin-bar.totm-skin { --totm-sticky-offset: calc(var(--header-h) + 32px); }
.totm-skin .site-header-inner { max-width: calc(var(--content) + 2 * var(--gutter)); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.totm-skin .site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.totm-skin .site-logo-svg { height: 24px; width: auto; display: block; }
.totm-skin .site-brand-sub { font: 500 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding-left: 10px; border-left: 1px solid var(--ink); }
.totm-skin .site-nav { flex: 1; display: flex; align-items: center; gap: 24px; justify-content: flex-end; }
.totm-skin .site-nav .primary-menu { display: flex; gap: 4px; list-style: none; margin: 0 auto 0 24px; padding: 0; }
.totm-skin .site-nav .primary-menu > li { margin: 0; }
.totm-skin .site-nav .primary-menu > li > a { display: block; padding: 10px 14px; border-radius: 999px; font: 500 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: none; border: 0; }
.totm-skin .site-nav .primary-menu > li > a:hover, .totm-skin .site-nav .primary-menu > li.current-menu-item > a, .totm-skin .site-nav .primary-menu > li.current_page_item > a { background: var(--orchid); color: var(--ink); }
.totm-skin .site-actions { display: flex; align-items: center; gap: 10px; }
.totm-skin .site-action { font: 500 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 10px 6px; }
.totm-skin .site-basket { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background .2s; }
.totm-skin .site-basket:hover { background: var(--orchid); }
.totm-skin .site-basket svg { width: 22px; height: 22px; }
.totm-skin .site-basket-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff; font: 600 11px/20px var(--sans); text-align: center; }
.totm-skin .site-basket-count[hidden] { display: none; }
.totm-skin .site-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--green); color: var(--ink); font: 600 14px/1 var(--sans); text-decoration: none; transition: transform .3s var(--ease); }
.totm-skin .site-cta:hover { transform: translateY(-2px); color: var(--ink); }
.totm-skin .site-nav .primary-menu > li > a, .totm-skin .site-action, .totm-skin .site-cta { white-space: nowrap; }
/* Tighter header between the phone menu and wide screens, so the four menu items fit on one line. */
@media (min-width: 981px) and (max-width: 1180px) { .totm-skin .site-nav { gap: 12px; } .totm-skin .site-nav .primary-menu { gap: 0; margin-left: 12px; } .totm-skin .site-nav .primary-menu > li > a { padding: 10px 9px; letter-spacing: .05em; } .totm-skin .site-cta { padding: 0 16px; } }
.totm-skin .site-nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.totm-skin .site-nav-toggle .bars, .totm-skin .site-nav-toggle .bars::before, .totm-skin .site-nav-toggle .bars::after { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--ink); content: ""; transition: transform .3s var(--ease), opacity .2s; }
.totm-skin .site-nav-toggle .bars { top: 21px; }
.totm-skin .site-nav-toggle .bars::before { left: 0; top: -6px; }
.totm-skin .site-nav-toggle .bars::after { left: 0; top: 6px; }
.totm-skin .site-nav-toggle[aria-expanded=true] .bars { background: transparent; }
.totm-skin .site-nav-toggle[aria-expanded=true] .bars::before { transform: translateY(6px) rotate(45deg); }
.totm-skin .site-nav-toggle[aria-expanded=true] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 980px) {
  .totm-skin .site-nav-toggle { display: block; }
  .totm-skin .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--ink); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .admin-bar.totm-skin .site-nav { top: calc(var(--header-h) + 46px); }
  .totm-skin .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
  .totm-skin .site-nav .primary-menu { flex-direction: column; margin: 0; }
  .totm-skin .site-nav .primary-menu > li > a { padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .totm-skin .site-actions { padding-top: 16px; flex-wrap: wrap; }
  .totm-skin .site-cta { flex: 1; justify-content: center; }
}

/* Main layout -------------------------------------------------------------- */
.totm-skin .site-main { min-height: 50vh; }
.totm-skin .site-main > .entry-content, .totm-skin .totm-page { overflow-x: clip; }
/* margin: Foundation only loads on pages with the old blocks, so without it this box was pinned left on wide screens */
.totm-skin .grid-container { max-width: calc(var(--content) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.totm-skin .grid-container .grid-container { padding-left: 0; padding-right: 0; }

/* Block patterns used on pages (core blocks with these class names) */
.totm-section { padding: var(--section) var(--gutter) !important; margin: 0 !important; }
.totm-section > .wp-block-group__inner-container, .totm-section.is-layout-constrained > *, .totm-section > .totm-inner { max-width: var(--content); margin-left: auto !important; margin-right: auto !important; }
.totm-section.is-layout-constrained > .alignwide { max-width: var(--content); }
.totm-bg-lilac { background: var(--lilac); } .totm-bg-orchid { background: var(--orchid); } .totm-bg-blush { background: var(--blush); } .totm-bg-peach { background: var(--peach); } .totm-bg-peach-soft { background: var(--peach-soft); }
.totm-bg-teal { background: var(--teal); } .totm-bg-teal-soft { background: var(--teal-soft); } .totm-bg-mint { background: var(--mint); } .totm-bg-mint-soft { background: var(--mint-soft); } .totm-bg-ink { background: var(--ink); color: #fff; }
.totm-bg-ink a, .totm-bg-ink h2, .totm-bg-ink h3 { color: #fff; }
.totm-hero { position: relative; overflow: hidden; }
.totm-hero::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(35% 35% at 30% 30%, rgba(255,255,255,.55), transparent 70%); animation: tlSheen 16s ease-in-out infinite alternate; pointer-events: none; }
.totm-hero > * { position: relative; }
.totm-hero h1 { max-width: 8.36em; }
.totm-hero .totm-lead, .totm-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 33.21em; color: var(--ink-2); }
.totm-facts-row { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--ink); padding-top: 20px; margin-top: 32px !important; }
.totm-facts-row > * { padding-right: 28px; margin: 0 28px 0 0 !important; border-right: 1px solid var(--ink); }
.totm-facts-row > *:last-child { border-right: 0; }
.totm-facts-row strong { display: block; font: 300 48px/1 var(--serif); margin-bottom: 6px; }
.totm-facts-row span, .totm-facts-row .label { font: 500 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.totm-rule-list { list-style: none !important; margin: 0 0 24px !important; padding: 0 !important; border-top: 1px solid var(--ink); }
.totm-rule-list li { margin: 0; padding: 10px 0 10px 34px; position: relative; }
.totm-rule-list li:first-child { padding-top: 18px; }
.totm-rule-list li:first-child::before { top: 25px; }
.totm-rule-list li::before { content: ""; position: absolute; left: 6px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--green-ink); border-bottom: 2px solid var(--green-ink); transform: rotate(-45deg); }
.totm-card { padding: clamp(24px, 3vw, 36px) !important; border-radius: var(--radius); }
.totm-card h3 { margin-top: 0; }
.totm-stat strong { display: block; font: 300 clamp(56px, 6vw, 88px)/.95 var(--serif); letter-spacing: -.02em; margin-bottom: 12px; }
.totm-stat p { margin: 0; }
.totm-stat { border-top: 1px solid var(--ink); padding-top: 20px; }
.totm-split { gap: clamp(24px, 4vw, 64px) !important; align-items: center !important; }
.totm-split img { border-radius: var(--radius); }
.totm-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: end; padding-bottom: 16px; margin-bottom: 32px !important; border-bottom: 1px solid var(--ink); }
.totm-sec-head > * { margin: 0 !important; }
@media (max-width: 781px) { .totm-sec-head { grid-template-columns: minmax(0, 1fr); } .totm-facts-row strong { font-size: 36px; } .totm-facts-row > * { padding-right: 16px; margin-right: 16px !important; } }
@keyframes tlSheen { from { transform: translate(0, 0); } to { transform: translate(10%, 6%); } }
@media (prefers-reduced-motion: reduce) { .totm-hero::before { animation: none; } }

/* Core block polish */
.totm-skin .wp-block-separator { border: 0; border-top: 1px solid var(--ink); opacity: 1; }
.totm-skin .wp-block-quote { border-left: 0; padding: 0; margin: 0; }
.totm-skin .wp-block-quote p { font: 300 clamp(26px, 2.6vw, 38px)/1.2 var(--serif); }
.totm-skin .wp-block-quote cite { font: 500 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--ink-2); }
.totm-skin .wp-block-image img { border-radius: var(--radius-sm); }
.totm-skin .wp-block-details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.totm-skin .wp-block-details summary { font: 300 clamp(22px, 2vw, 28px)/1.2 var(--serif); cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
.totm-skin .wp-block-details summary::-webkit-details-marker { display: none; }
.totm-skin .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font: 300 22px/30px var(--sans); text-align: center; transition: transform .3s var(--ease); }
.totm-skin .wp-block-details[open] summary::after { transform: rotate(45deg); }
.totm-skin .wp-block-details > *:not(summary) { margin-top: 12px; color: var(--ink-2); }
.totm-faq { border-top: 1px solid var(--ink); }

/* Theme ACF blocks, restyled -------------------------------------------- */
.totm-skin .img-text-col.has-custom-acf-color, .totm-skin .full-width.has-custom-acf-color, .totm-skin .split-content.has-custom-acf-color { background-color: var(--orchid) !important; }
.totm-skin .img-text-col { padding: var(--section) 0; }
.totm-skin .img-text-col__img { border-radius: var(--radius); }
.totm-skin .scrolling-text, .totm-skin .totm-block-scrolling-text { background: var(--blush) !important; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.totm-skin .scrolling-text *, .totm-skin .totm-block-scrolling-text * { font-family: var(--serif) !important; font-weight: 300 !important; color: var(--ink) !important; }
.totm-skin .review-slider { background: #fff !important; padding: var(--section) 0; }
.totm-skin .review-slider .review { padding: 0 8px; }
.totm-skin .review-slider .reviewinner { background: var(--orchid); border-radius: var(--radius); padding: 32px; border: 0; box-shadow: none; text-align: left; }
.totm-skin .review-slider .review-title { font: 300 26px/1.15 var(--serif); }
.totm-skin .review-slider .review-sub-title { font: 500 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.totm-skin .review-slider .slick-dots li button::before { color: var(--ink); }
.totm-skin .faq-list { padding: var(--section) 0; }
.totm-skin .faq-accordion h3 { font: 300 clamp(22px, 2vw, 28px)/1.2 var(--serif) !important; border-bottom: 1px solid var(--line); border-radius: 0; background: none !important; padding: 18px 40px 18px 0 !important; }

/* WooCommerce: product page --------------------------------------------- */
.totm-skin.single-product .site-main { padding-bottom: var(--section); }
.totm-skin.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); padding-top: 48px; }
.totm-skin.single-product div.product > * { grid-column: 1 / -1; }
.totm-skin.single-product div.product > .woocommerce-product-gallery { grid-column: 2; grid-row: 1; width: 100% !important; float: none; }
.totm-skin.single-product div.product > .summary { grid-column: 1; grid-row: 1; width: 100% !important; float: none; margin: 0; }
.totm-skin.single-product div.product:not(:has(.woocommerce-product-gallery__image img:not(.wp-post-image[src*="placeholder"]))) > .summary { grid-column: 1 / -1; max-width: 760px; }
.totm-skin.single-product .woocommerce-product-gallery:has(img[src*="placeholder"]) { display: none; }
.totm-skin.single-product .product_title { font-size: clamp(44px, 5.6vw, 80px); line-height: 1.04; margin-bottom: 16px; }
.totm-skin.single-product .summary .price { font: 300 40px/1 var(--serif) !important; color: var(--ink) !important; margin: 0 0 20px; }
.totm-skin.single-product .woocommerce-product-details__short-description { font-size: 19px; color: var(--ink-2); max-width: 35.58em; margin-bottom: 24px; }
.totm-skin.single-product form.cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 16px; }
.totm-skin.single-product form.cart > .totm-pick, .totm-skin.single-product form.cart > .totm-team-fields { flex: 1 1 100%; }
.totm-skin.single-product form.cart .quantity input.qty { width: 110px; min-height: 48px; border-radius: 999px; text-align: center; }
.totm-skin.single-product .totm-product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.totm-skin.single-product .totm-product-meta { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--ink); padding-top: 16px; margin: 24px 0 0; }
.totm-skin.single-product .totm-product-meta > div { padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--ink); }
.totm-skin.single-product .totm-product-meta > div:last-child { border: 0; }
.totm-skin.single-product .totm-product-meta b { display: block; font: 300 30px/1 var(--serif); margin-bottom: 4px; }
.totm-skin.single-product .totm-product-meta span { font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.totm-skin .totm-product-description-fullwidth { padding: var(--section) var(--gutter) 0; }
.totm-skin .totm-product-description-fullwidth > .grid-container { max-width: var(--content); padding: 0; }
.totm-skin .totm-product-description-fullwidth .totm-section { padding-left: 0 !important; padding-right: 0 !important; }
.totm-skin .totm-product-description-fullwidth .totm-section.alignfull { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
.totm-skin .woocommerce-tabs, .totm-skin .related.products, .totm-skin .up-sells { display: none; }
.totm-skin .woocommerce-message, .totm-skin .woocommerce-info, .totm-skin .woocommerce-error, .totm-skin .wc-block-components-notice-banner { border: 0 !important; border-radius: 14px; background: var(--orchid) !important; color: var(--ink) !important; padding: 14px 18px !important; font-size: 15px; }
.totm-skin .woocommerce-error { background: #fde9e7 !important; color: #b3261e !important; }
.totm-skin .woocommerce-message::before, .totm-skin .woocommerce-info::before, .totm-skin .woocommerce-error::before { display: none; }
.totm-skin .woocommerce-message .button, .totm-skin .woocommerce-info .button { float: right; min-height: 38px; padding: 0 16px; }
@media (max-width: 860px) { .totm-skin.single-product div.product { grid-template-columns: minmax(0, 1fr); } .totm-skin.single-product div.product > .woocommerce-product-gallery, .totm-skin.single-product div.product > .summary { grid-column: 1; grid-row: auto; } }

/* Woo: basket and checkout (classic and block) ----------------------------- */
.totm-skin.woocommerce-cart .site-main, .totm-skin.woocommerce-checkout .site-main, .totm-skin.woocommerce-account .site-main { padding: 48px 0 var(--section); }
.totm-skin .totm-woo-grid-wrapper > h1, .totm-skin .page-title { font-size: clamp(40px, 5vw, 64px); }
.totm-skin table.shop_table { border: 0; border-collapse: collapse; border-top: 1px solid var(--ink); border-radius: 0; }
.totm-skin table.shop_table th { font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 12px 8px; }
.totm-skin table.shop_table td { border: 0; border-bottom: 1px solid var(--line); padding: 16px 8px; background: none; }
.totm-skin table.shop_table tbody tr:nth-child(even) { background: none; }
.totm-skin .cart_totals, .totm-skin .woocommerce-checkout-review-order, .totm-skin .wc-block-components-sidebar { background: var(--orchid); border-radius: var(--radius); padding: 28px; }
.totm-skin .cart_totals h2, .totm-skin #order_review_heading { font-size: 32px; }
.totm-skin .wc-block-components-title, .totm-skin .wc-block-components-checkout-step__title { font-family: var(--serif) !important; font-weight: 300 !important; }
.totm-skin .product-name a { font: 300 24px/1.15 var(--serif); text-decoration: none; }
.totm-skin dl.variation { font-size: 14px; color: var(--ink-2); }
.totm-skin dl.variation dt { font-weight: 600; }
.totm-skin .product-thumbnail { display: none; }
.totm-skin #payment { background: #fff !important; border-radius: var(--radius-sm); }
.totm-skin .woocommerce form .form-row { margin-bottom: 14px; }

/* Woo: My Account ------------------------------------------------------------ */
.totm-skin.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.totm-skin.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.totm-skin.woocommerce-account .woocommerce-MyAccount-navigation, .totm-skin.woocommerce-account .woocommerce-MyAccount-content { width: auto !important; float: none !important; margin: 0; }
.totm-skin .woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--header-h) + 24px); background: none !important; padding: 0 !important; border: 0 !important; }
.totm-skin .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.totm-skin .woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--line); }
.totm-skin .woocommerce-MyAccount-navigation a { display: block; padding: 14px 0 !important; font: 500 13px/1.2 var(--sans) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink) !important; background: none !important; border: 0 !important; }
.totm-skin .woocommerce-MyAccount-navigation a::before, .totm-skin .woocommerce-MyAccount-navigation a::after { display: none !important; }
.totm-skin .woocommerce-MyAccount-navigation li.is-active a { padding-left: 14px !important; box-shadow: inset 3px 0 0 var(--green); }
.totm-skin .woocommerce-MyAccount-content > h2:first-child, .totm-skin .totm-account-title { font-size: clamp(36px, 4vw, 56px); }
.totm-skin.woocommerce-account .woocommerce-MyAccount-content { font-size: 16px; }
@media (max-width: 860px) {
  .totm-skin.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
  .totm-skin .woocommerce-MyAccount-navigation { position: static; }
  .totm-skin .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 6px; border: 0; padding-bottom: 4px; scrollbar-width: none; }
  .totm-skin .woocommerce-MyAccount-navigation li { border: 0; flex: none; }
  .totm-skin .woocommerce-MyAccount-navigation a { padding: 9px 14px !important; border: 1px solid var(--line-2) !important; border-radius: 999px; font-size: 12px !important; }
  .totm-skin .woocommerce-MyAccount-navigation li.is-active a { padding-left: 14px !important; background: var(--ink) !important; color: #fff !important; box-shadow: none; }
}
/* Login and register */
.totm-skin .u-columns.col2-set, .totm-skin #customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.totm-skin #customer_login > div { width: auto; float: none; padding: 32px; border-radius: var(--radius); background: var(--orchid); }
.totm-skin #customer_login > div + div { background: var(--teal-soft); }
.totm-skin #customer_login h2 { font-size: 40px; }
.totm-skin .woocommerce form.login, .totm-skin .woocommerce form.register { border: 0; padding: 0; margin: 0; }
@media (max-width: 781px) { .totm-skin #customer_login { grid-template-columns: minmax(0, 1fr); } }

/* Footer ----------------------------------------------------------------- */
.totm-skin .site-footer { background: var(--ink); color: #fff; padding: 72px var(--gutter) 32px; margin: 0; }
.totm-skin .site-footer a { color: #fff; }
.totm-skin .site-footer-inner { max-width: var(--content); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.25); }
.totm-skin .site-footer .site-brand { color: #fff; margin-bottom: 20px; }
.totm-skin .site-footer .site-brand-sub { border-left-color: #fff; }
.totm-skin .footer-brand p { color: rgba(255,255,255,.75); max-width: 21.35em; }
.totm-skin .footer-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--green); color: var(--ink) !important; font: 600 14px/1 var(--sans); margin-top: 8px; }
.totm-skin .footer-col h2 { font: 500 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0 0 16px; }
.totm-skin .footer-col ul { list-style: none; margin: 0; padding: 0; }
.totm-skin .footer-col li { margin: 0 0 10px; }
.totm-skin .footer-col a { text-decoration: none; }
.totm-skin .footer-col a:hover { text-decoration: underline; }
.totm-skin .footer-col p { color: rgba(255,255,255,.75); font-size: 15px; }
.totm-skin .footer-bottom { max-width: var(--content); margin: 0 auto; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(255,255,255,.6); }
.totm-skin .footer-social { display: flex; flex-wrap: wrap; gap: 18px; }
.totm-skin .footer-social a { color: rgba(255,255,255,.75); text-decoration: none; }
@media (max-width: 900px) { .totm-skin .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } .totm-skin .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .totm-skin .site-footer-inner { grid-template-columns: minmax(0, 1fr); } }

/* Hide leftovers from the LearnDash era */
.totm-skin .ld-profile-summary, .totm-skin .learndash-wrapper .ld-profile-summary, .totm-skin .totm-ld-tiered-pricing-table { display: none !important; }

/* Testimonials */
.totm-quotes .wp-block-quote p { font: 400 17px/1.6 var(--sans) !important; color: var(--ink-2); }
.totm-quotes .wp-block-quote p::first-line { font-weight: 500; color: var(--ink); }
.totm-quotes .wp-block-quote cite { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.totm-quotes .wp-block-column { display: flex; }
.totm-quotes .wp-block-quote { display: flex; flex-direction: column; justify-content: space-between; }

/* Product page fixes */
.totm-skin.single-product .summary .price::before, .totm-skin .price::before { content: none !important; display: none !important; }
.totm-skin.woocommerce a.button.is-ghost, .totm-skin .totm-product-actions a.button.is-ghost { background: transparent !important; border-color: var(--ink) !important; color: var(--ink) !important; }
.totm-skin.woocommerce a.button.is-ghost:hover, .totm-skin .totm-product-actions a.button.is-ghost:hover { background: var(--ink) !important; color: #fff !important; }
.totm-skin form.cart .quantity:has(input[type=hidden]) { display: none; }
.totm-skin.single-product form.cart { margin-bottom: 10px; }
.totm-skin.single-product .summary { display: flex; flex-direction: column; align-items: flex-start; }
.totm-skin.single-product .summary > form.cart, .totm-skin.single-product .summary > .totm-product-meta { align-self: stretch; }
.totm-skin.single-product .summary > form.cart:has(> .single_add_to_cart_button:only-of-type) { align-self: flex-start; }

/* My Account layout fixes (Woo clearfix pseudo-elements become grid items; theme panel and widths) */
.totm-skin.woocommerce-account .woocommerce::before, .totm-skin.woocommerce-account .woocommerce::after { display: none !important; }
.totm-skin.woocommerce-account .woocommerce { background: none !important; padding: 0 !important; border-radius: 0; }
.totm-skin.woocommerce-account .woocommerce-MyAccount-navigation, .totm-skin.woocommerce-account .woocommerce-MyAccount-navigation li, .totm-skin.woocommerce-account .woocommerce-MyAccount-content { width: auto !important; max-width: none; }
.totm-skin .woocommerce-MyAccount-navigation li { box-shadow: none !important; background: none !important; border-radius: 0 !important; }
.totm-skin .woocommerce-MyAccount-navigation a { box-shadow: none !important; border-radius: 0 !important; }
.totm-skin .woocommerce-MyAccount-navigation li.is-active a { box-shadow: none !important; border-left: 3px solid var(--green) !important; padding-left: 12px !important; }
.totm-skin .totm-account-title { margin: 0 0 24px; }
@media (max-width: 860px) { .totm-skin .woocommerce-MyAccount-navigation li.is-active a { border-left: 1px solid var(--ink) !important; } }

/* Basket, checkout and order pages */
.totm-skin .totm-page-head { padding-bottom: 24px !important; }
.totm-skin.woocommerce-cart .site-main, .totm-skin.woocommerce-checkout .site-main { padding-top: 0; }
.totm-skin .wp-block-woocommerce-cart.alignwide, .totm-skin .wp-block-woocommerce-checkout.alignwide { width: min(var(--content), calc(100% - 2 * var(--gutter))); max-width: none; margin: 0 auto var(--section); padding: 0; }
.totm-skin .wc-block-cart-items__header-image, .totm-skin .wc-block-cart-item__image, .totm-skin .wc-block-components-order-summary-item__image { display: none !important; }
.totm-skin .wc-block-components-order-summary-item { grid-template-columns: minmax(0, 1fr) auto; }
.totm-skin .wc-block-components-product-name { font: 300 24px/1.15 var(--serif) !important; text-decoration: none !important; color: var(--ink) !important; }
.totm-skin .wc-block-cart-item__product .wc-block-components-product-metadata { font-size: 14px; color: var(--ink-2); }
.totm-skin .wc-block-components-product-details { font-size: 14px; color: var(--ink-2); list-style: none; padding: 0; }
.totm-skin .wc-block-components-product-details__name { font-weight: 600; }
.totm-skin .wc-block-cart-items { border-top: 1px solid var(--ink); }
.totm-skin .wc-block-cart-items th { font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.totm-skin .wc-block-components-text-input input, .totm-skin .wc-blocks-components-select__select, .totm-skin .wc-block-components-textarea { border-radius: 12px !important; }
.totm-skin .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { min-height: 52px; }
.totm-skin .wc-block-components-checkout-step__heading .wc-block-components-title { font-size: 28px !important; }
.totm-skin .woocommerce-order { background: none !important; padding: 0 !important; }
.totm-skin .woocommerce-order-details, .totm-skin .woocommerce-customer-details { background: none !important; }
.totm-skin .woocommerce-order-overview { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 16px 0 !important; margin: 0 0 32px !important; list-style: none; display: flex; flex-wrap: wrap; gap: 24px; }
.totm-skin .woocommerce-order-overview li { border: 0 !important; margin: 0 !important; padding: 0 !important; font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.totm-skin .woocommerce-order-overview li strong { display: block; margin-top: 6px; font: 300 24px/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
.totm-skin .wc-block-cart__empty-cart__title { font-size: clamp(32px, 4vw, 48px) !important; }
.totm-skin .wc-block-cart__empty-cart__title::before { display: none !important; }

/* Mobile header: override older theme rules (column layout, padded buttons) */
.totm-skin .site-header-inner { flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; }
.totm-skin .site-nav-toggle { flex: none; width: 44px !important; height: 44px !important; min-height: 0; padding: 0 !important; border-radius: 50% !important; background: none !important; }
.totm-skin .site-nav-toggle .bars { left: 12px; top: 21px; }
@media (max-width: 420px) { .totm-skin .site-brand-sub { display: none; } }
.totm-skin.single-product form.cart::before, .totm-skin.single-product form.cart::after, .totm-skin.single-product div.product::before, .totm-skin.single-product div.product::after { display: none !important; }
.totm-skin .totm-atc-wrap { margin-top: 8px; }
@media (max-width: 860px) { .totm-skin .woocommerce-MyAccount-navigation a { border-radius: 999px !important; } .totm-skin.woocommerce-account .site-main { padding-top: 24px; } }

/* ==========================================================================
   Product pages (plugin template)
   ========================================================================== */
.totm-skin.single-product div.product.totm-product { display: block; padding: 0; gap: 0; }
.totm-skin.single-product .site-main { padding-bottom: 0; }
.totm-product-hero .tp-grid { max-width: var(--content); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.totm-product-hero .product_title { font-size: clamp(44px, 5.4vw, 80px) !important; line-height: 1.04 !important; margin: 0 0 20px !important; max-width: 8.36em; }
.totm-product-hero .totm-lead { margin: 0 0 8px; }
.totm-product-hero .totm-facts-row { margin-top: 28px !important; }
.tp-buy { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 rgba(10,10,10,.06), 0 18px 40px -24px rgba(10,10,10,.25); }
.tp-buy .tp-price { font: 300 48px/1 var(--serif); margin: 0 0 20px; }
.tp-buy .tp-price .totm-from, .tp-buy .tp-price .totm-per { font-size: 15px; }
.tp-buy form.cart { display: block !important; margin: 0 !important; }
.tp-buy form.cart .single_add_to_cart_button, .tp-buy > .button { width: 100%; min-height: 52px; }
.tp-buy .totm-atc-wrap { display: flex !important; gap: 10px; margin: 0 !important; }
.tp-buy .totm-atc-wrap .quantity:not(:has(input[type=hidden])) { flex: none; }
.tp-buy .totm-atc-wrap .quantity input.qty { width: 84px; min-height: 52px; border-radius: 999px; text-align: center; }
.tp-buy .totm-atc-wrap .single_add_to_cart_button { flex: 1; }
.tp-buy .tp-try { display: block; margin: 14px 0 0; text-align: center; font-weight: 600; color: var(--green-ink); text-decoration: none; }
.tp-buy .tp-try:hover { text-decoration: underline; }
.tp-buy .tp-owned { margin: 0 0 14px; color: var(--ink-2); }
.tp-notes { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.tp-notes li { position: relative; padding: 4px 0 4px 24px; margin: 0; font-size: 14px; color: var(--ink-2); }
.tp-notes li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 10px; height: 6px; border-left: 2px solid var(--green-ink); border-bottom: 2px solid var(--green-ink); transform: rotate(-45deg); }
.tp-buy .totm-pick { margin-bottom: 16px; max-height: 420px; overflow: auto; padding-right: 6px; }
.tp-buy .totm-pick legend { font-size: 22px; }
.tp-buy .totm-team-fields input, .tp-buy .totm-team-fields select { width: 100%; }
.tp-buy .woocommerce-message, .tp-buy .woocommerce-error, .tp-buy .woocommerce-info { margin-bottom: 16px; }
.totm-product-content > .totm-section:first-child { padding-top: var(--section) !important; }
@media (max-width: 900px) {
  .totm-product-hero .tp-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-buy { position: static; }
}

/* ==========================================================================
   Consistency pass
   ========================================================================== */

/* Section rhythm: two plain white sections in a row share one gap */
.totm-section:not([class*="totm-bg-"]) + .totm-section:not([class*="totm-bg-"]) { padding-top: 0 !important; }
.totm-product-content > .totm-section:first-child:not([class*="totm-bg-"]) { padding-top: var(--section) !important; }

/* Section heads: one rule only. Lists, FAQs and stats that follow don't add their own top line */
.totm-sec-head + .totm-faq, .totm-sec-head + .totm-rule-list, .totm-sec-head + .totm-module-list, .totm-sec-head + * .totm-module-list { border-top: 0 !important; }
.totm-sec-head + .wp-block-columns .totm-stat { border-top: 0; padding-top: 0; }
.totm-sec-head .totm-kicker { margin-bottom: 12px; }
.totm-sec-head > .wp-block-heading { margin-bottom: 0 !important; }
.totm-sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.totm-sec-head > .totm-kicker { grid-column: 1; }
.totm-sec-head > h2 { grid-column: 1; }
.totm-sec-head > p:not(.totm-kicker) { grid-column: 2; grid-row: 1 / span 2; align-self: end; color: var(--ink-2); max-width: 30.84em; }
.totm-faq .wp-block-details:first-child { padding-top: 0; }
.totm-skin .totm-learn-head { margin: 48px 0 16px; }

/* Stats: one size, numbers never wrap awkwardly */
.totm-stat strong { font-size: clamp(48px, 4.6vw, 72px) !important; white-space: nowrap; }
.totm-stat p { max-width: 20.16em; }

/* Course cards: icon, title, audience, then the footer pinned to the bottom so rows line up */
.course-card { min-height: 0 !important; }
.course-card h3 { margin: 28px 0 0 !important; }
.course-card p { flex: 1; }
.course-card .meta-row { margin-top: 8px; }
.course-grid { align-items: stretch; }

/* Home hero image sits on the hero colour, without its own box */
.totm-hero .wp-block-image img { border-radius: 0; }

/* How it works steps */
.totm-steps { gap: clamp(16px, 2vw, 24px) !important; }
.totm-step { border-top: 1px solid var(--ink); padding-top: 20px; }
.totm-step .totm-step-n strong { font: 300 44px/1 var(--serif); }
.totm-step h3 { margin: 12px 0 8px; font-size: clamp(22px, 2vw, 28px); }
.totm-step p { margin: 0; color: var(--ink-2); }
.totm-rule-list.totm-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 781px) { .totm-rule-list.totm-two-col { grid-template-columns: minmax(0, 1fr); } }

/* Button hierarchy: one green button per section for the main action, outline for the alternative, a text
   link for anything minor. "Talk to our team" sits beside "Start learning today", so its buttons step down. */
.totm-skin .totm-card.totm-bg-teal .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: transparent !important; border-color: var(--ink) !important; }
.totm-skin .totm-card.totm-bg-teal .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--ink) !important; color: #fff !important; }
/* Boxes with buttons: like the pricing cards, buttons share the full width at the bottom of the box. */
.totm-skin .totm-card { display: flex; flex-direction: column; }
.totm-skin .totm-card > .wp-block-buttons, .totm-skin .totm-card .wp-block-group__inner-container > .wp-block-buttons { margin-top: auto !important; padding-top: 24px; flex-wrap: nowrap; }
.totm-skin .totm-card .wp-block-buttons > .wp-block-button { flex: 1 1 0; }
.totm-skin .totm-card .wp-block-buttons .wp-block-button__link { width: 100%; justify-content: center; text-align: center; }
@media (max-width: 640px) { .totm-skin .totm-card .wp-block-buttons { flex-wrap: wrap; } .totm-skin .totm-card .wp-block-buttons > .wp-block-button { flex-basis: 100%; } }
/* Room between content and the buttons that follow it. */
.totm-skin .wp-block-columns + .wp-block-buttons, .totm-skin .totm-catalogue + .wp-block-buttons { margin-top: 40px !important; }

/* Pricing cards: buttons sit on one baseline */
.price-cta { align-items: flex-end; }
.price-card .price-cta .totm-btn.is-ghost { background: #fff; }

/* Privacy and other long text */
.totm-prose > * { max-width: var(--content) !important; margin-left: auto !important; margin-right: auto !important; } /* the same width as the rest of the site */
.totm-prose h3 { margin-top: 40px !important; font-size: 28px; }
.totm-prose h2.wp-block-heading { margin-top: 72px !important; margin-bottom: 12px !important; } /* space above each section of a long page */
.totm-prose ul { padding-left: 22px; margin: 0 0 16px; }
.totm-prose li { margin: 4px 0; }

/* Enquiry form */
.totm-skin .wpcf7 { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.totm-skin .wpcf7 label { display: block; margin-bottom: 14px; }
.totm-skin .wpcf7 .totm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.totm-skin .wpcf7 .totm-form-row > p { display: contents; }
@media (max-width: 600px) { .totm-skin .wpcf7 .totm-form-row { grid-template-columns: 1fr; } }
.totm-skin .wpcf7 input:not([type=submit]):not([type=radio]):not([type=checkbox]), .totm-skin .wpcf7 textarea, .totm-skin .wpcf7 select { width: 100%; margin-top: 6px; }
.totm-skin .wpcf7 input[type=submit], .totm-skin .wpcf7-submit { min-height: 48px; padding: 0 28px; border: 1px solid var(--green) !important; border-radius: 999px !important; background: var(--green) !important; color: var(--ink) !important; font: 600 15px/1 var(--sans) !important; cursor: pointer; }
.totm-skin .wpcf7 .wpcf7-response-output { border-radius: 12px; margin: 16px 0 0; }

/* Login and register (logged out My Account) */
.totm-skin #customer_login::before, .totm-skin #customer_login::after, .totm-skin .u-columns::before, .totm-skin .u-columns::after { display: none !important; }
.totm-skin #customer_login > div { margin: 0 !important; }
.totm-skin .totm-login-head { max-width: var(--content); margin: 0 auto 32px; }
.totm-skin .totm-login-head h1 { margin-bottom: 12px; }

/* Empty basket */
.totm-skin .wp-block-woocommerce-empty-cart-block { padding: 40px; border-radius: var(--radius); background: var(--orchid); text-align: left; }
.totm-skin .wp-block-woocommerce-empty-cart-block .has-text-align-center { text-align: left !important; }
.totm-skin .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-size: 32px !important; margin: 0 0 8px; }
.totm-skin .wp-block-woocommerce-empty-cart-block .wp-block-buttons { justify-content: flex-start !important; }

/* 404 */
.totm-404 .wp-block-buttons, .totm-404 .totm-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Classic theme: groups render an inner container, so the heading grid goes on that */
.totm-sec-head { display: block !important; }
.totm-sec-head > .wp-block-group__inner-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: end; }
.totm-sec-head > .wp-block-group__inner-container > * { margin: 0 !important; max-width: none !important; }
.totm-sec-head > .wp-block-group__inner-container > .totm-kicker { grid-column: 1; margin-bottom: 12px !important; }
.totm-sec-head > .wp-block-group__inner-container > h2, .totm-sec-head > .wp-block-group__inner-container > h1 { grid-column: 1; }
.totm-sec-head > .wp-block-group__inner-container > p:not(.totm-kicker) { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-2); max-width: 30.84em !important; padding-bottom: 6px; }
@media (max-width: 781px) {
  .totm-sec-head > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); }
  .totm-sec-head > .wp-block-group__inner-container > p:not(.totm-kicker) { grid-column: 1; grid-row: auto; margin-top: 12px !important; }
}
.totm-sec-head + .wp-block-group.totm-faq, .totm-sec-head + .totm-faq { border-top: 0 !important; }
.totm-faq > .wp-block-group__inner-container > .wp-block-details:first-child { padding-top: 0; }
.totm-sec-head + .totm-steps .totm-step { border-top: 0; padding-top: 0; }

/* Mobile and spacing details */
.totm-facts-row + .wp-block-buttons, .totm-facts-row + * .wp-block-buttons { margin-top: 28px !important; }
.wp-block-buttons + .totm-facts-row { margin-top: 32px !important; }
.tp-buy .totm-atc-wrap { flex-wrap: wrap; }
.tp-buy .totm-atc-wrap .single_add_to_cart_button { min-width: 0; white-space: normal; flex: 1 1 160px; }
.tp-buy .tp-price .totm-per { display: block; margin-top: 8px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .totm-skin .footer-col:first-of-type ul, .totm-skin .site-footer-inner > .footer-col:nth-child(2) ul { columns: 2; column-gap: 16px; }
  .totm-skin .footer-col li { break-inside: avoid; font-size: 15px; }
  .tp-buy { padding: 22px; }
  .tp-buy .tp-price { font-size: 40px; }
  .totm-product-hero .product_title { font-size: 44px !important; }
}

/* Account pages: consistent top spacing, titles and Woo's own forms */
.totm-skin.woocommerce-account .totm-woo-grid-wrapper { padding-top: 0 !important; }
.totm-skin.woocommerce-account .site-main .woocommerce { margin-top: 0 !important; }
.totm-skin.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type:not([class]) { color: var(--ink-2, #555); }
.totm-skin .woocommerce-Addresses { display: block !important; margin: 0; }
.totm-skin .woocommerce-Addresses::before, .totm-skin .woocommerce-Addresses::after { display: none !important; }
.totm-skin .woocommerce-Addresses .woocommerce-Address { width: auto !important; float: none !important; max-width: 480px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.totm-skin .woocommerce-Address-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.totm-skin .woocommerce-Address-title h2 { font-size: 26px !important; margin: 0 !important; }
.totm-skin .woocommerce-Address-title .edit { float: none !important; font-size: 14px; font-weight: 600; color: var(--green-ink, var(--ink)); text-decoration: underline; text-underline-offset: 3px; }
.totm-skin .woocommerce-Address address { font-style: normal; line-height: 1.6; margin: 0; }
.totm-skin .woocommerce-EditAccountForm fieldset { margin: 32px 0 8px; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); }
.totm-skin .woocommerce-EditAccountForm legend { float: left; width: 100%; margin-bottom: 16px; font: 400 26px/1.2 var(--serif); padding: 0; }
.totm-skin .woocommerce-EditAccountForm legend + * { clear: both; }
.totm-skin .woocommerce-EditAccountForm #account_display_name_description { display: block; margin-top: 6px; font-size: 14px; color: var(--muted, #6b6b6b); }
.totm-skin .woocommerce-EditAccountForm #account_display_name_description em { font-style: normal; }
.totm-skin .woocommerce-orders-table .button { margin: 2px 4px 2px 0; }
.totm-skin .woocommerce-order-details__title, .totm-skin .woocommerce-column__title { font-size: 26px !important; margin: 32px 0 12px !important; }
.totm-skin .woocommerce-table--order-details th, .totm-skin .woocommerce-table--order-details td { border: 0 !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; background: none !important; }
.totm-skin .woocommerce-table--order-details tfoot th::after, .totm-skin .woocommerce-table--order-details tfoot th::before { display: none !important; }
.totm-skin .woocommerce-customer-details address { font-style: normal; padding: 20px 24px; border: 1px solid var(--line) !important; border-radius: var(--radius-sm); }
.totm-skin .totm-facts dd { white-space: nowrap; }
.totm-skin .woocommerce-MyAccount-content .woocommerce-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.totm-skin .woocommerce-MyAccount-content .woocommerce-info .button { float: none !important; order: 2; margin: 0 !important; }
@media (max-width: 640px) {
  .totm-skin .totm-team-head { padding: 22px; }
  .totm-skin .totm-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 16px 20px; justify-content: start; width: 100%; }
  .totm-skin .totm-facts div:last-child { grid-column: 1 / -1; }
  .totm-skin .totm-facts dd { font-size: 24px; }
  .totm-skin .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number { display: flex !important; justify-content: space-between; padding: 14px 10px; font: 400 22px/1.2 var(--serif); background: var(--orchid) !important; }
  .totm-skin .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number::before { content: attr(data-title); font: 700 14px/1.6 var(--sans); }
  .totm-skin .woocommerce-orders-table .button { padding: 9px 16px !important; font-size: 14px !important; }
  .totm-skin .woocommerce-MyAccount-content .woocommerce-info .button { width: 100%; text-align: center; }
}
.totm-skin .totm-course-group .totm-sub { font-size: clamp(26px, 2.4vw, 34px) !important; line-height: 1.1; }

/* ===========================================================================
   One scale for the whole site. Every heading, card, button and page top uses
   these, so pages built at different times line up.
   =========================================================================== */
:root {
  --fs-h1: clamp(44px, 6vw, 88px);        /* page titles */
  --fs-h1-sm: clamp(40px, 4.8vw, 68px);   /* long titles: products, account, basket */
  --fs-h2: clamp(32px, 3.6vw, 54px);      /* section headings */
  --fs-h2-sm: clamp(28px, 2.8vw, 40px);   /* sub-sections: catalogue categories, My courses groups, login */
  --fs-h3: clamp(24px, 2.2vw, 32px);      /* card titles */
  --fs-h4: clamp(21px, 1.8vw, 26px);      /* small headings: steps, FAQs, totals, addresses */
  --card-pad: clamp(24px, 2.4vw, 32px);
  --btn-h: 48px;
  --page-top: clamp(40px, 5vw, 72px);     /* space above the title on pages without a coloured hero */
}

/* Headings */
.totm-skin .product_title, .totm-product-hero .product_title, .totm-skin .totm-account-title,
.totm-skin .woocommerce-MyAccount-content > h2:first-child, .totm-skin .totm-woo-grid-wrapper > h1, .totm-skin .page-title { font-size: var(--fs-h1-sm) !important; line-height: 1.04 !important; }
.totm-catalogue .sec-head h2, .totm-skin .totm-course-group .totm-sub, .totm-skin #customer_login h2, .totm-empty h2,
.totm-team-head h2, .totm-thanks h1, .totm-thanks h2, .totm-skin .wc-block-cart__empty-cart__title,
.totm-skin .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-size: var(--fs-h2-sm) !important; line-height: 1.1 !important; }
.totm-skin .cart_totals h2, .totm-skin #order_review_heading, .totm-skin .wc-block-components-checkout-step__heading .wc-block-components-title,
.totm-step h3, .totm-prose h3, .totm-skin .faq-accordion h3, .totm-skin .woocommerce-Address-title h2,
.totm-skin .woocommerce-order-details__title, .totm-skin .woocommerce-column__title, .totm-skin .woocommerce-EditAccountForm legend,
.totm-skin .review-slider .review-title { font-size: var(--fs-h4) !important; line-height: 1.2 !important; }
.totm-skin .totm-course h3 { font-size: clamp(22px, 1.9vw, 27px); }

/* Cards: one padding, one radius */
.course-card, .price-card, .totm-card, .tp-buy, .totm-thanks, .totm-team-head, .totm-invite, .totm-skin .wpcf7,
.totm-skin .cart_totals, .totm-skin .woocommerce-checkout-review-order, .totm-skin .wc-block-components-sidebar,
.totm-skin #customer_login > div, .totm-skin .review-slider .reviewinner { padding: var(--card-pad) !important; border-radius: var(--radius); }
.totm-skin .totm-course { padding: clamp(22px, 2vw, 28px); }
.totm-skin .woocommerce-Addresses .woocommerce-Address { padding: var(--card-pad); border-radius: var(--radius); }
@media (max-width: 640px) { .course-card { min-height: 0; } }

/* Buttons: one height everywhere, including the buy box */
.tp-buy form.cart .single_add_to_cart_button, .tp-buy > .button { min-height: var(--btn-h); }

/* Page tops: pages without a coloured hero (account, basket, checkout) start the same distance below the header */
.totm-skin.woocommerce-cart .site-main, .totm-skin.woocommerce-checkout .site-main, .totm-skin.woocommerce-account .site-main { padding-top: var(--page-top) !important; }

/* Hero with a form beside it (Make an enquiry): title sits at the top, not floating halfway down */
.totm-hero .totm-split:has(.wpcf7) { align-items: flex-start !important; }

/* Phones: header links are comfortable to tap (at least 40px high) */
@media (max-width: 860px) {
  .totm-skin .site-actions .site-action, .totm-skin .site-brand { min-height: 40px; display: inline-flex; align-items: center; }
}

/* Password reset pages: the page title above says what to do, so WooCommerce's own intro line isn't needed */
.totm-skin .woocommerce-ResetPassword > p:first-child { display: none; }
.totm-skin.woocommerce-lost-password .woocommerce, .totm-skin .woocommerce-ResetPassword { max-width: 560px; }
.totm-skin.woocommerce-lost-password .woocommerce { display: block !important; max-width: 560px; }
.totm-skin.woocommerce-lost-password .woocommerce-ResetPassword .form-row { width: 100% !important; float: none !important; }
.totm-skin.woocommerce-lost-password .woocommerce-ResetPassword input.input-text { width: 100%; }

/* Basket and checkout: less space round the page, no table chrome, and one corner radius for every box */
.totm-skin.woocommerce-cart, .totm-skin.woocommerce-checkout { --box-r: var(--radius-sm); }
.totm-skin.woocommerce-cart .totm-page-head, .totm-skin.woocommerce-checkout .totm-page-head { padding-top: 0 !important; }
.totm-skin .wp-block-woocommerce-cart.alignwide, .totm-skin .wp-block-woocommerce-checkout.alignwide { margin-bottom: 0; }
.totm-skin.woocommerce-cart .site-main, .totm-skin.woocommerce-checkout .site-main { padding-bottom: var(--section) !important; }
/* The basket's items: a plain card, no header row or grey stripes */
.totm-skin .wc-block-cart-items { border: 1px solid var(--line) !important; border-collapse: separate; border-spacing: 0; border-radius: var(--box-r); overflow: hidden; }
.totm-skin .wc-block-cart-items thead { display: none; }
.totm-skin .wc-block-cart-items tbody, .totm-skin .wc-block-cart-items tr, .totm-skin .wc-block-cart-items td { background: none !important; border: 0 !important; }
.totm-skin .wc-block-cart-items tr + tr td { border-top: 1px solid var(--line) !important; }
.totm-skin .wc-block-cart-items td.wc-block-cart-item__product { padding: 24px 0 24px 24px !important; }
.totm-skin .wc-block-cart-items td.wc-block-cart-item__total { padding: 24px 24px 24px 0 !important; }
/* Every box the same radius: summary panels, fields, address, payment choices, notices */
.totm-skin.woocommerce-cart .wc-block-components-sidebar, .totm-skin.woocommerce-checkout .wc-block-components-sidebar,
.totm-skin .wc-block-components-text-input input, .totm-skin .wc-blocks-components-select__select, .totm-skin .wc-block-components-textarea,
.totm-skin .wc-block-components-address-card, .totm-skin .wc-block-components-radio-control--highlight-checked,
.totm-skin .wc-block-components-radio-control-accordion-option, .totm-skin .wc-block-components-notice-banner,
.totm-skin .wc-block-components-express-payment--checkout, .totm-skin .wc-block-components-totals-coupon__input input { border-radius: var(--box-r) !important; }
.totm-skin .wc-block-components-radio-control--highlight-checked::after { border-radius: var(--box-r) !important; }
.totm-skin .wc-block-components-radio-control-accordion-option:first-child { border-top-left-radius: var(--box-r) !important; border-top-right-radius: var(--box-r) !important; }
.totm-skin .wc-block-components-radio-control-accordion-option:last-child { border-bottom-left-radius: var(--box-r) !important; border-bottom-right-radius: var(--box-r) !important; }
/* Apple Pay and Google Pay: Stripe fixes their corners, so round the box they sit in to match the site's buttons */
.totm-skin .wc-block-components-express-payment__event-buttons > li { border-radius: 999px; overflow: hidden; }
/* Checkout order summary: one panel, not a bordered box inside the pink one */
.totm-skin .wp-block-woocommerce-checkout-order-summary-block { border: 0 !important; border-radius: 0 !important; }
.totm-skin .wc-block-components-checkout-order-summary__title { padding: 0 0 8px !important; }
.totm-skin .wc-block-components-checkout-order-summary__title-text { font: 300 28px/1.15 var(--serif) !important; margin: 0 !important; }
.totm-skin .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper, .totm-skin .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary { padding-left: 0 !important; padding-right: 0 !important; }
.totm-skin .wc-block-components-order-summary-item__description { padding-left: 0 !important; }
.totm-skin .wc-block-components-order-summary-item .wc-block-cart-item__prices,
.totm-skin .wc-block-components-order-summary-item .wc-block-components-product-metadata__description { display: none; }
.totm-skin .wc-block-components-totals-item, .totm-skin .wc-block-components-totals-coupon { font-family: var(--sans); }
/* No extra questions after payment: access starts once they've paid (see the line above Place order) */
.totm-skin .wp-block-woocommerce-checkout-order-note-block { display: none !important; } /* the PO number field (in "Purchase order") is the only extra question */
.totm-skin .wc-block-components-sidebar .wc-block-components-totals-item, .totm-skin .wc-block-components-sidebar .wc-block-components-panel__button { padding-left: 0 !important; padding-right: 0 !important; }
.totm-skin .wc-block-components-sidebar .wc-block-components-panel__button-icon { right: 0 !important; }
.totm-skin .wc-block-cart-item__product .wc-block-cart-item__prices { display: none !important; }
.totm-skin .wc-block-cart__totals-title { font: 300 28px/1.15 var(--serif) !important; letter-spacing: 0 !important; text-transform: none !important; padding: 0 0 8px !important; }
/* Phones and narrow screens: the basket item is name on the left, price on the right; the totals panel sits below with a gap */
.totm-skin .wc-block-cart.is-mobile .wc-block-cart-items__row, .totm-skin .wc-block-cart.is-small .wc-block-cart-items__row { grid-template-columns: minmax(0, 1fr) auto !important; }
.totm-skin .wc-block-cart.is-mobile .wc-block-cart-item__product, .totm-skin .wc-block-cart.is-small .wc-block-cart-item__product { grid-column: 1 !important; grid-row: 1 !important; padding: 20px 0 20px 20px !important; }
.totm-skin .wc-block-cart.is-mobile .wc-block-cart-item__total, .totm-skin .wc-block-cart.is-small .wc-block-cart-item__total { grid-column: 2 !important; grid-row: 1 !important; padding: 20px 20px 20px 12px !important; text-align: right; }
.totm-skin .wc-block-cart.is-mobile .wc-block-components-sidebar, .totm-skin .wc-block-cart.is-small .wc-block-components-sidebar { margin-top: 16px; }
.totm-skin .wc-block-cart-item__product .wc-block-components-product-price { display: none; }
/* The order summary WooCommerce repeats above Place order on phones: a pink panel like the others, not a bordered box */
.totm-skin .checkout-order-summary-block-fill { border: 0 !important; border-radius: var(--box-r) !important; background: var(--orchid); padding: var(--card-pad) !important; }
.totm-skin .checkout-order-summary-block-fill .wc-block-components-totals-wrapper, .totm-skin .checkout-order-summary-block-fill .wc-block-components-order-summary, .totm-skin .checkout-order-summary-block-fill .wc-block-components-totals-item, .totm-skin .checkout-order-summary-block-fill .wc-block-components-panel__button { padding-left: 0 !important; padding-right: 0 !important; }
.totm-skin .wc-block-components-checkout-order-summary__title { border: 0 !important; }
.totm-skin .wc-block-components-sidebar .wc-block-components-panel, .totm-skin .checkout-order-summary-block-fill .wc-block-components-panel { padding-left: 0 !important; padding-right: 0 !important; }
/* Basket item price: as prominent as the name */
.totm-skin .wc-block-cart-item__total .wc-block-components-product-price, .totm-skin .wc-block-cart-item__total .wc-block-formatted-money-amount { font: 300 26px/1.15 var(--serif) !important; color: var(--ink); white-space: nowrap; }
/* Team licences: the number box is the number of learners (only team licences have one), and the price
   is set by the plan, so WooCommerce's "Save £…" badge against £20 a head would only confuse */
.totm-skin .wc-block-cart-item__quantity { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.totm-skin .wc-block-cart-item__quantity:has(.wc-block-components-quantity-selector)::before { content: "Learners"; font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; width: 100%; }
.totm-skin .wc-block-components-quantity-selector { border: 1px solid var(--line-2, rgba(10,10,10,.35)) !important; border-radius: 999px !important; overflow: hidden; height: 44px; width: 148px !important; margin: 0 !important; }
.totm-skin .wc-block-components-quantity-selector::after { display: none !important; }
.totm-skin .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { border: 0 !important; box-shadow: none !important; font: 500 17px/1 var(--sans) !important; min-width: 0; }
.totm-skin .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { font-size: 20px !important; min-width: 44px; color: var(--ink) !important; opacity: 1; }
.totm-skin .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled { opacity: .3; }
.totm-skin .wc-block-cart-item__wrap .wc-block-components-sale-badge, .totm-skin .wc-block-cart-item__total .wc-block-components-sale-badge, .totm-skin .wc-block-components-order-summary-item .wc-block-components-sale-badge { display: none !important; }
.totm-skin .wc-block-cart-item__product .wc-block-components-product-details { margin: 8px 0 0; }
.totm-skin .wc-block-cart-item__product .wc-block-components-product-details li { margin: 2px 0; }
/* Item details (organisation, courses, licence, price) one per line, not run together with slashes */
.totm-skin .wc-block-components-product-details > span { display: block; margin: 2px 0; }
.totm-skin .wc-block-components-product-details > span > span[aria-hidden="true"] { display: none; }
.totm-skin .wc-block-components-product-details__price .wc-block-components-product-details__value { color: var(--ink-2); }
.totm-skin .wc-block-components-order-summary-item__total-price, .totm-skin .wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount { font: 300 22px/1.15 var(--serif) !important; color: var(--ink); white-space: nowrap; }
.totm-skin .wc-block-components-order-summary-item .wc-block-components-product-details__price { display: none !important; } /* the number of learners is changed in the basket, so the next price step only shows there */
/* Basket item text at a readable size */
.totm-skin .wc-block-cart-item__product .wc-block-components-product-metadata, .totm-skin .wc-block-cart-item__product .wc-block-components-product-metadata__description { font-size: 16px !important; line-height: 1.5; color: var(--ink-2); }
.totm-skin .wc-block-cart-item__product .wc-block-components-product-details { font-size: 17px !important; line-height: 1.5; }
.totm-skin .wc-block-cart-item__product .wc-block-components-product-name { font-size: 30px !important; }
.totm-skin .wc-block-cart-item__product .wc-block-components-product-metadata__description p { font-size: inherit !important; line-height: inherit; margin: 4px 0 0; }

/* Order received (thank-you) page: same width and look as the basket and checkout */
.totm-skin.woocommerce-order-received .site-main > .wrapper > .woocommerce, .totm-skin.woocommerce-order-received .site-main .woocommerce:has(> .woocommerce-order) { width: min(var(--content), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.totm-skin.woocommerce-order-received .totm-thanks { margin: 0 0 32px; padding: var(--card-pad); border-radius: var(--radius); }
.totm-skin.woocommerce-order-received .woocommerce-notice--success.woocommerce-thankyou-order-received { display: none; } /* the box above already says it */
.totm-skin.woocommerce-order-received .woocommerce-order-details__title, .totm-skin.woocommerce-order-received .woocommerce-column__title { font: 300 28px/1.15 var(--serif); margin: 40px 0 16px; }
.totm-skin.woocommerce-order-received table.shop_table.order_details { width: 100%; border: 1px solid var(--line) !important; border-collapse: separate !important; border-spacing: 0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.totm-skin.woocommerce-order-received table.order_details thead { display: none; }
.totm-skin.woocommerce-order-received table.order_details tr, .totm-skin.woocommerce-order-received table.order_details th, .totm-skin.woocommerce-order-received table.order_details td { background: none !important; border: 0 !important; }
.totm-skin.woocommerce-order-received table.order_details td, .totm-skin.woocommerce-order-received table.order_details th { padding: 16px 24px !important; font: 400 17px/1.4 var(--sans); letter-spacing: 0; text-transform: none; vertical-align: middle; }
.totm-skin.woocommerce-order-received table.order_details tfoot tr th, .totm-skin.woocommerce-order-received table.order_details tfoot tr td { border-top: 1px solid var(--line) !important; }
.totm-skin.woocommerce-order-received table.order_details td.product-total, .totm-skin.woocommerce-order-received table.order_details tfoot td { text-align: right; white-space: nowrap; }
.totm-skin.woocommerce-order-received table.order_details td.product-name { padding-top: 24px !important; padding-bottom: 24px !important; }
.totm-skin.woocommerce-order-received table.order_details .product-name a, .totm-skin.woocommerce-order-received table.order_details td.product-name { font: 300 26px/1.15 var(--serif); color: var(--ink); text-decoration: none; }
.totm-skin.woocommerce-order-received table.order_details .product-quantity { font: 400 17px/1.4 var(--sans); color: var(--ink-2); }
.totm-skin.woocommerce-order-received table.order_details td.product-total { font: 300 26px/1.15 var(--serif); }
.totm-skin.woocommerce-order-received table.order_details tfoot tr:nth-last-child(n) th { font-weight: 500; }
.totm-skin.woocommerce-order-received table.order_details tfoot .order-total td, .totm-skin.woocommerce-order-received table.order_details tfoot tr:has(+ tr) + tr td { font-weight: 600; }
.totm-skin.woocommerce-order-received table.order_details .button { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.totm-skin.woocommerce-order-received .woocommerce-customer-details address { border-radius: var(--radius-sm) !important; padding: 24px !important; line-height: 1.6; }
.totm-skin.woocommerce-order-received .woocommerce-order-overview { border-top: 0 !important; border-bottom: 0 !important; padding: 0 !important; gap: 12px 40px; }
@media (max-width: 640px) {
  .totm-skin.woocommerce-order-received table.order_details td, .totm-skin.woocommerce-order-received table.order_details th { padding: 12px 16px !important; }
}
.totm-skin.woocommerce-order-received table.order_details tfoot, .totm-skin.woocommerce-order-received table.order_details tbody { background: none !important; }
.totm-skin.woocommerce-order-received .woocommerce-order-overview { margin-left: 0 !important; padding-left: 0 !important; }
.totm-skin.woocommerce-order-received table.order_details .product-quantity { display: block; margin-top: 4px; }
.totm-skin.woocommerce-order-received .woocommerce-order-overview::before, .totm-skin.woocommerce-order-received .woocommerce-order-overview::after { display: none !important; } /* WooCommerce clearfix: an empty flex item that pushed the first entry along */

/* My team: the site's own buttons, fields and cards (older theme rules made the buttons square with a shadow) */
.totm-skin button.totm-btn { border-radius: 999px !important; box-shadow: none !important; min-height: var(--btn-h, 48px); padding: 0 24px !important; font: 600 15px/1 var(--sans) !important; letter-spacing: 0; text-transform: none; }
.totm-skin button.totm-btn.is-ghost { background: transparent !important; border: 1px solid var(--ink) !important; color: var(--ink) !important; }
.totm-skin button.totm-btn.is-ghost:hover, .totm-skin button.totm-btn.is-ghost:focus-visible { background: var(--ink) !important; color: #fff !important; }
.totm-skin .totm-invite textarea, .totm-skin .totm-topup input[type=number], .totm-skin .totm-renew input[type=number] { border: 1px solid var(--line-2, rgba(10,10,10,.35)) !important; border-radius: var(--radius-sm) !important; background: #fff; box-shadow: none !important; padding: 12px 16px !important; font: 400 17px/1.4 var(--sans) !important; }
.totm-skin .totm-topup input[type=number], .totm-skin .totm-renew input[type=number] { height: var(--btn-h, 48px); width: 140px; padding: 0 16px !important; }
.totm-skin .totm-topup-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* File upload: the browser's grey button becomes an outline pill */
.totm-skin .totm-upload { display: grid; gap: 10px; margin: 8px 0 4px; }
.totm-skin .totm-upload input[type=file] { font: 400 15px/1.4 var(--sans); color: var(--ink-2); max-width: 100%; }
.totm-skin .totm-upload input[type=file]::file-selector-button { margin-right: 12px; min-height: 40px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.totm-skin .totm-upload input[type=file]::file-selector-button:hover { background: var(--ink); color: #fff; }
/* Add seats: a card with a proper header and chevron, not the browser's triangle */
.totm-skin .totm-topup { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: #fff; padding: 0 !important; }
.totm-skin .totm-topup > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--card-pad); font: 300 26px/1.15 var(--serif); cursor: pointer; }
.totm-skin .totm-topup > summary::-webkit-details-marker { display: none; }
.totm-skin .totm-topup > summary::after { content: ""; box-sizing: border-box; width: 11px; height: 11px; margin: -6px 4px 0 0; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transform-origin: 50% 50%; transition: transform .25s, margin .25s; flex: none; }
.totm-skin .totm-topup[open] > summary::after { transform: rotate(225deg); margin-top: 6px; }
.totm-skin .totm-topup > form { padding: 0 var(--card-pad) var(--card-pad); }
/* Renewal: its own card, since it matters when it shows */
.totm-skin .totm-renew { margin: 0 0 16px; padding: var(--card-pad); border-radius: var(--radius); background: var(--lilac, #ddd0fd); }
.totm-skin .totm-renew .totm-sub { margin-top: 0 !important; }
.totm-skin .totm-renew label { display: block; font-weight: 600; margin: 8px 0 8px; }
/* People: a clean table in a rounded card, no grey stripes or header band */
.totm-skin .totm-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; background: #fff; }
.totm-skin .totm-table { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: collapse; }
.totm-skin .totm-table thead, .totm-skin .totm-table tbody, .totm-skin .totm-table tr, .totm-skin .totm-table th, .totm-skin .totm-table td { background: none !important; border: 0 !important; }
.totm-skin .totm-table th { font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 16px 20px 12px !important; text-align: left; }
.totm-skin .totm-table td { padding: 16px 20px !important; vertical-align: top; font-size: 16px; }
.totm-skin .totm-table tbody tr { border-top: 1px solid var(--line) !important; }
.totm-skin .totm-table td small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.totm-skin .totm-table .totm-link { background: none; border: 0; padding: 0; font: 500 15px/1.4 var(--sans); text-decoration: underline; color: var(--ink); cursor: pointer; box-shadow: none; }
.totm-skin .totm-topup-row > input, .totm-skin .totm-topup-row > button { margin: 0 !important; } /* the theme gives inputs a bottom margin, which pushed the button out of line */
@media (max-width: 480px) { .totm-skin .totm-topup-row > input, .totm-skin .totm-topup-row > button { width: 100% !important; } }

/* My account: the single-order page gets the same order card as the thank-you page */
.totm-skin.woocommerce-account table.shop_table.order_details { width: 100%; border: 1px solid var(--line) !important; border-collapse: separate !important; border-spacing: 0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.totm-skin.woocommerce-account table.order_details thead { display: none; }
.totm-skin.woocommerce-account table.order_details tbody, .totm-skin.woocommerce-account table.order_details tfoot, .totm-skin.woocommerce-account table.order_details tr, .totm-skin.woocommerce-account table.order_details th, .totm-skin.woocommerce-account table.order_details td { background: none !important; border: 0 !important; }
.totm-skin.woocommerce-account table.order_details td, .totm-skin.woocommerce-account table.order_details th { padding: 16px 24px !important; font: 400 17px/1.4 var(--sans); letter-spacing: 0; text-transform: none; vertical-align: middle; }
.totm-skin.woocommerce-account table.order_details tfoot th, .totm-skin.woocommerce-account table.order_details tfoot td { border-top: 1px solid var(--line) !important; }
.totm-skin.woocommerce-account table.order_details tfoot th { font-weight: 500; }
.totm-skin.woocommerce-account table.order_details td.product-total, .totm-skin.woocommerce-account table.order_details tfoot td { text-align: right; white-space: nowrap; }
.totm-skin.woocommerce-account table.order_details td.product-name, .totm-skin.woocommerce-account table.order_details td.product-total { padding-top: 24px !important; padding-bottom: 24px !important; font: 300 26px/1.15 var(--serif); color: var(--ink); }
.totm-skin.woocommerce-account table.order_details .product-name a { color: var(--ink); text-decoration: none; }
.totm-skin.woocommerce-account table.order_details .product-quantity { display: block; margin-top: 4px; font: 400 17px/1.4 var(--sans); color: var(--ink-2); }
.totm-skin.woocommerce-account table.order_details .button { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.totm-skin.woocommerce-account .woocommerce-order-details__title, .totm-skin.woocommerce-account .woocommerce-column__title { font: 300 28px/1.15 var(--serif); margin: 32px 0 16px; }
.totm-skin.woocommerce-account .woocommerce-customer-details address { border-radius: var(--radius-sm) !important; padding: 24px !important; line-height: 1.6; }
/* Orders list: a clean card, plain header, the main action green and the rest outlined */
.totm-skin .woocommerce-orders-table { width: 100%; border: 1px solid var(--line) !important; border-collapse: separate !important; border-spacing: 0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.totm-skin .woocommerce-orders-table thead, .totm-skin .woocommerce-orders-table tbody, .totm-skin .woocommerce-orders-table tr, .totm-skin .woocommerce-orders-table th, .totm-skin .woocommerce-orders-table td { background: none !important; border: 0 !important; }
.totm-skin .woocommerce-orders-table th { font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 16px 20px 12px !important; text-align: left; }
.totm-skin .woocommerce-orders-table td { padding: 14px 20px !important; font-size: 16px; vertical-align: middle; border-top: 1px solid var(--line) !important; }
.totm-skin .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a { font-weight: 600; color: var(--ink); }
.totm-skin .woocommerce-orders-table__cell-order-actions { display: flex !important; flex-wrap: wrap; gap: 8px; }
.totm-skin .woocommerce-orders-table .woocommerce-button { min-height: 36px; padding: 6px 16px !important; margin: 0 !important; font-size: 14px !important; }
.totm-skin .woocommerce-orders-table .woocommerce-button.view, .totm-skin .woocommerce-orders-table .woocommerce-button.cancel, .totm-skin .woocommerce-orders-table .woocommerce-button.invoice { background: transparent !important; border: 1px solid var(--ink) !important; color: var(--ink) !important; }
/* Account forms: the same fields as checkout */
.totm-skin.woocommerce-account .woocommerce-MyAccount-content input.input-text, .totm-skin.woocommerce-account .woocommerce-MyAccount-content select, .totm-skin.woocommerce-account .woocommerce-MyAccount-content .select2-selection { border: 1px solid var(--line-2) !important; border-radius: var(--radius-sm) !important; min-height: 50px; padding: 12px 16px !important; font: 400 17px/1.4 var(--sans) !important; background-color: #fff; box-shadow: none !important; }
.totm-skin.woocommerce-account .woocommerce-MyAccount-content .password-input { display: block; position: relative; }
.totm-skin.woocommerce-account .woocommerce-MyAccount-content .show-password-input { box-shadow: none !important; background-color: transparent !important; top: 50%; transform: translateY(-50%); right: 14px; }
.totm-skin.woocommerce-account .woocommerce-MyAccount-content fieldset:not(.totm-q) { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; margin: 32px 0 0; }
.totm-skin.woocommerce-account .woocommerce-MyAccount-content fieldset:not(.totm-q) legend { font: 300 28px/1.15 var(--serif); padding: 0 12px 0 0; }
/* Billing address pages: the page title already says "Billing address" */
.totm-skin.woocommerce-edit-address .woocommerce-MyAccount-content form > h3:first-child, .totm-skin.woocommerce-edit-address .woocommerce-Address-title h2 { display: none; }
.totm-skin table.shop_table.woocommerce-orders-table { border: 1px solid var(--line) !important; border-radius: var(--radius-sm) !important; }
.totm-skin .totm-team-rename input[type=text], .totm-skin form input[name=name][type=text] { border-radius: var(--radius-sm) !important; }
.totm-skin.woocommerce-edit-address .woocommerce-MyAccount-content form > h2:first-child, .totm-skin.woocommerce-edit-address .woocommerce-MyAccount-content form > h3:first-child { display: none; }
.totm-skin.woocommerce-edit-address .woocommerce-Address-title { display: block !important; }

/* Gentle motion (see js/learning-skin.js): rise into place on scroll, a soft header shadow, and lifts on hover for things you can click */
.tl-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0ms); }
.tl-reveal.is-in { opacity: 1; transform: none; }
@media print { .tl-reveal { opacity: 1 !important; transform: none !important; } }
.totm-skin .site-header { transition: box-shadow .35s var(--ease); }
.totm-skin .site-header.is-scrolled { box-shadow: 0 8px 28px -12px rgba(10,10,10,.18); }
.totm-skin .sector-list a, .totm-skin .resource-link, .totm-skin a.totm-card, .totm-skin .sector-card { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s var(--ease); }
.totm-skin .sector-list a:hover, .totm-skin .resource-link:hover, .totm-skin a.totm-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(10,10,10,.35); }
.totm-skin .site-main a.totm-btn svg, .totm-skin .site-main .wp-block-button__link svg { transition: transform .3s var(--ease); }
.totm-skin .site-main a.totm-btn:hover svg, .totm-skin .site-main .wp-block-button__link:hover svg { transform: translateX(3px); }
.totm-skin .totm-split img, .totm-skin .wp-block-image img { transition: transform .9s var(--ease); }
.totm-skin .totm-split:hover img { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) {
  .tl-reveal { opacity: 1; transform: none; transition: none; }
  .totm-skin .sector-list a:hover, .totm-skin .resource-link:hover, .totm-skin a.totm-card:hover, .totm-skin .totm-split:hover img { transform: none; }
}

/* More gentle motion: progress bars fill, course icons lift on hover, buttons press in, smooth scrolling to sections,
   the mobile menu's links cascade in, and the basket count pops when something's been added. FAQs open smoothly (JS). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .totm-bar i { transform-origin: left center; animation: tlFill 1.1s var(--ease) .2s both; }
  @keyframes tlFill { from { transform: scaleX(0); } }
  .course-card .ti, .sector-card .ti, .resource-card .ti, .totm-course-head .ti { transition: transform .45s var(--ease); }
  a.course-card:hover .ti, a.sector-card:hover .ti, a.resource-card:hover .ti, .sector-card:hover .ti, .resource-card:hover .ti { transform: translateY(-3px) rotate(-8deg); }
  .totm-skin .totm-btn, .totm-skin .button, .totm-skin .wp-block-button__link, .totm-skin .site-cta, .totm-skin .wc-block-components-button, .totm-skin .single_add_to_cart_button { transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s; }
  .totm-skin .totm-btn:active, .totm-skin .button:active, .totm-skin .wp-block-button__link:active, .totm-skin .site-cta:active, .totm-skin .wc-block-components-button:active, .totm-skin .single_add_to_cart_button:active { transform: scale(.96) !important; transition-duration: .1s; }
  .totm-skin .site-nav.is-open .primary-menu > li, .totm-skin .site-nav.is-open .site-actions > * { animation: tlMenuIn .45s var(--ease) both; }
  .totm-skin .site-nav.is-open .primary-menu > li:nth-child(2) { animation-delay: .04s; }
  .totm-skin .site-nav.is-open .primary-menu > li:nth-child(3) { animation-delay: .08s; }
  .totm-skin .site-nav.is-open .primary-menu > li:nth-child(4) { animation-delay: .12s; }
  .totm-skin .site-nav.is-open .primary-menu > li:nth-child(5) { animation-delay: .16s; }
  .totm-skin .site-nav.is-open .primary-menu > li:nth-child(n+6), .totm-skin .site-nav.is-open .site-actions > * { animation-delay: .2s; }
  @keyframes tlMenuIn { from { opacity: 0; transform: translateY(-6px); } }
  .totm-skin .site-basket-count.is-pop { animation: tlPop .6s cubic-bezier(.34, 1.56, .64, 1) .3s both; }
  @keyframes tlPop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
}
/* Anything jumped to with a link stops below the sticky header */
.totm-skin [id] { scroll-margin-top: calc(var(--totm-sticky-offset, 80px) + 16px); }
/* The team licence total: the plan line fades across when the plan changes */
.totm-team-total > span { transition: opacity .25s; }
.totm-team-total.is-changing > span { opacity: 0; }

/* Workplace Scheme section (TOTM_Learning_Workplace::band), in the workplace site's colours, and its footer link */
.totm-skin .totm-wp { --wp-lilac: #eddefa; --wp-mauve: #dab2db; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 32px 0 0; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--wp-lilac); color: var(--ink); text-align: left; }
.totm-skin .totm-wp-logo { display: block; width: 220px; height: auto; margin: 0 0 20px; }
.totm-skin .totm-wp h2 { margin: 0 0 14px; font: 300 clamp(34px, 4vw, 52px)/1.05 var(--serif); }
.totm-skin .totm-wp p { margin: 0; max-width: 36em; }
.totm-skin .totm-wp-lead { font-size: 18px; line-height: 1.55; }
.totm-skin .totm-wp-stat { display: flex; align-items: center; gap: 16px; margin: 22px 0 0 !important; padding: 14px 20px; border-radius: var(--radius-sm); background: var(--wp-mauve); }
.totm-skin .totm-wp-stat strong { flex: none; font: 300 44px/1 var(--serif); }
.totm-skin .totm-wp-stat span { font-size: 16px; line-height: 1.4; }
.totm-skin .totm-wp-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 0; padding: 0; list-style: none; }
.totm-skin .totm-wp-points li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 600; }
.totm-skin .totm-wp-points img { flex: none; width: 36px; height: 36px; padding: 6px; border: 1px solid var(--ink); border-radius: 50%; background: #fff; }
.totm-skin .totm-wp-offer { margin-top: 18px !important; padding: 10px 14px; border-radius: var(--radius-sm); background: #fff; }
.totm-skin .totm-wp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px !important; }
.totm-skin .totm-wp-trust { margin-top: 16px !important; font-size: 14px; color: var(--muted, #555); }
.totm-skin .totm-wp-products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.totm-skin .totm-wp-products li { margin: 0; }
.totm-skin .totm-wp-products a { display: block; overflow: hidden; border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.totm-skin .totm-wp-products img { display: block; width: 100%; height: auto; aspect-ratio: 233 / 168; object-fit: cover; }
.totm-skin .totm-wp-products span { display: block; padding: 10px 14px 12px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.totm-skin .totm-wp-products a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10,10,10,.1); }
.totm-skin .totm-thanks .totm-wp { margin-top: 28px; background: #fff; }
.totm-skin .totm-thanks .totm-wp-stat { background: var(--wp-lilac); }
.totm-skin .totm-thanks .totm-wp-products a { background: var(--wp-lilac); }
.totm-skin .totm-dash .totm-wp { margin-top: 40px; }
.totm-skin .resource-section .totm-wp { margin-top: 40px; }
.totm-skin .resource-more .totm-wp, .totm-skin .resource-more + .totm-wp { margin-top: 40px; }
.totm-skin .footer-col .footer-workplace { margin-top: 16px; }
.totm-skin .footer-col .footer-workplace a { color: #fff; }
@media (max-width: 900px) { .totm-skin .totm-wp { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) {
  .totm-skin .totm-wp-points { grid-template-columns: 1fr; }
  .totm-skin .totm-wp-actions .totm-btn { width: 100%; text-align: center; }
  .totm-skin .totm-wp-products { gap: 10px; }
  .totm-skin .totm-wp-products span { font-size: 14px; padding: 8px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) { .totm-skin .totm-wp-products a { transition: none; } .totm-skin .totm-wp-products a:hover { transform: none; } }
.totm-skin .totm-wp-section .totm-wp { margin-top: 0; }
.totm-prose .totm-cert-check, .totm-prose .totm-cert-result { max-width: 760px !important; margin-left: 0 !important; } /* a code box doesn't need the full width */
