/*
Theme Name: CoachingHoops Child
Template: hello-elementor
Description: Child theme of Hello Elementor for coachinghoops.com.au. Self-hosted fonts and a few small CSS rules. It holds no page content or templates, so everything on the site stays editable in Elementor.
Author: TripleIT
Version: 1.5.1
Text Domain: coachinghoops-child
*/

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: 'Unica One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/unica-one-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/open-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/open-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/open-sans-latin-700-normal.woff2') format('woff2');
}
/* Barlow Condensed (1.4.0): a narrower headline face. Nothing uses it until it is chosen in
   Elementor (Typography > Family) on a heading; the 600 weight is the file that ships.
   SIL Open Font License, see fonts/barlow-condensed-OFL.txt. */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');
}

/* ---------- Small global touches ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* keeps anchor targets clear of the header */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Visible keyboard focus on every page */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #5BB4E0;
  outline-offset: 2px;
}

/* ---------- Header: "Enrol" as a button in the WordPress menu ----------
   In Appearance > Menus, add the Enrol link and give it the CSS class: menu-cta
   (turn on "CSS Classes" under Screen Options if it is hidden). */
.site-header .menu-cta > a,
.site-navigation .menu-cta > a {
  background: #C23B2D;
  color: #ffffff !important;
  font-family: 'Unica One', Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  padding: 12px 24px;
  border-radius: 8px;
  transition: filter .15s;
}
.site-header .menu-cta > a:hover,
.site-navigation .menu-cta > a:hover {
  filter: brightness(1.15);
}

/* The Enrol link stretches to the height of the menu row, which left its text stuck at the top.
   Centre the text in the box and let the button keep its own height. Hello's own menu rules are
   more specific than the rule above, so this one repeats the menu path. */
.site-header .site-navigation ul.menu li.menu-cta {
  display: flex;
  align-items: center;
  align-self: center;
}
.site-header .site-navigation ul.menu li.menu-cta > a {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 12px 24px;
  margin-left: 8px;
}

/* ---------- Header and footer menu: light links on the dark bar ---------- */
.site-header .site-navigation ul.menu li:not(.menu-cta) > a,
.site-footer .site-navigation ul.menu li > a,
.site-header .site-navigation-dropdown ul.menu li:not(.menu-cta) > a {
  color: #ffffff;
  font-family: 'Unica One', 'Arial Narrow', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-header .site-navigation ul.menu li:not(.menu-cta) > a:hover,
.site-header .site-navigation ul.menu li:not(.menu-cta) > a:focus,
.site-footer .site-navigation ul.menu li > a:hover,
.site-header .site-navigation-dropdown ul.menu li:not(.menu-cta) > a:hover {
  color: #5BB4E0;
}

/* ---------- Mobile menu: button and dropdown ---------- */
.site-header .site-navigation-toggle-holder .site-navigation-toggle {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}
.site-header .site-navigation-dropdown {
  background-color: #292C30;
}
.site-header .site-navigation-dropdown ul.menu > li {
  border-bottom: 1px solid #3F434A;
}
.site-header .site-navigation-dropdown .menu-cta {
  padding: 12px 20px;
  border-bottom: 0;
}
.site-header .site-navigation-dropdown .menu-cta > a {
  display: block;
  text-align: center;
}

/* Hello paints the dropdown list and its links white; match the dark header */
.site-header .site-navigation-dropdown ul.menu {
  background-color: #292C30;
  /* a clear bottom edge, so the open menu does not blend into a dark hero section below it */
  padding-bottom: 8px;
  border-bottom: 2px solid #5A5F68;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}
.site-header .site-navigation-dropdown ul.menu li:not(.menu-cta) > a {
  background-color: #292C30;
  padding: 14px 20px;
}
.site-header .site-navigation-dropdown ul.menu li.menu-cta > a {
  background-color: #C23B2D;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 8px;
}

/* ---------- Enquiry form (Fluent Forms): match the site buttons ---------- */
.fluentform .ff-btn.ff-btn-submit:not(.ff_btn_no_style) {
  background-color: #C23B2D;
  color: #ffffff;
  font-family: 'Unica One', Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 12px 26px;
  border: 0;
  border-radius: 8px;
}
.fluentform .ff-btn.ff-btn-submit:not(.ff_btn_no_style):hover,
.fluentform .ff-btn.ff-btn-submit:not(.ff_btn_no_style):focus {
  background-color: #A53124;
  color: #ffffff;
}

/* ---------- Header: "Call" phone link in the menu (1.4.0) ----------
   In Appearance > Menus, add a Custom Link "Call 0433 175 867" with the URL tel:+61433175867 and the
   CSS class: menu-call (place it before Enrol). It sits in the inline menu and in the phone dropdown.
   On a small laptop or landscape tablet (992px to 1219px wide) the inline menu has no room for it, so
   it is hidden there only; the phone dropdown (below 992px) and wider screens show it. */
@media (min-width: 992px) and (max-width: 1219px) {
  body .site-header .site-navigation ul.menu li.menu-call {
    display: none;
  }
}

/* ---------- Cart, Checkout and My account: side gutter ---------- */
/* Hello Elementor gives these pages' content no side padding, so on a phone the text and
   fields touched the screen edge, and on a desktop the heading sat further in than the content.
   The page heading and the content share one column. Since 1.4.0 that column lines up with the
   header and the rest of the site: 1200px wide above 1328px, then 56px, 32px and 20px side
   padding (the same steps as the header, footer and page sections below). */
body.woocommerce-page .page-header .entry-title,
body.woocommerce-page .page-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0;
}
@media (max-width: 1328px) {
  body.woocommerce-page .page-header .entry-title,
  body.woocommerce-page .page-content {
    max-width: 100%;
    padding-inline: 56px;
  }
}
@media (max-width: 1024px) {
  body.woocommerce-page .page-header .entry-title,
  body.woocommerce-page .page-content {
    padding-inline: 32px;
  }
}
@media (max-width: 767px) {
  body.woocommerce-page .page-header .entry-title,
  body.woocommerce-page .page-content {
    padding-inline: 20px;
  }
}

/* ---------- Cart, Checkout, My account and order confirmation: site theme (1.5.0) ----------
   These pages are WooCommerce shortcodes inside Hello's plain page, so they used the browser's default
   font, grey tables and square boxes. They now match the rest of the site: a dark title band (with a
   "Step 1 / 2 / 3 of 3" label on Cart, Checkout and the confirmation), a cream page, white cards with a
   coloured top strip, Unica One headings and buttons, Open Sans body text, and a two-column Checkout
   on a laptop. The strip and the main buttons take the school's colour (--ch-accent, set by the portal
   plugin when the cart holds a school's program) and fall back to the CoachingHoops red.
   All of it is CSS only: there is no template, so nothing here needs changing in Elementor. */
body.woocommerce-page .site-main {
  background: #F7F5F0;
  color: #3A3A4A;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
body.woocommerce-page .site-main .page-header {
  background: #292C30;
  margin: 0;
  padding: 44px 0 40px;
}
body.woocommerce-page .site-main .page-header .entry-title {
  margin-block: 0; /* top and bottom only: the 1200px column is centred by margin-inline: auto above (1.5.1) */
  color: #ffffff;
  font-family: 'Unica One', Impact, Arial, sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 1px;
  text-transform: uppercase;
}
body.woocommerce-page .site-main .page-header .entry-title::before {
  display: block;
  margin: 0 0 12px;
  color: #5BB4E0;
  font: 700 13px/1.2 'Open Sans', system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.woocommerce-cart .site-main .page-header .entry-title::before { content: 'Step 1 of 3'; }
body.woocommerce-checkout .site-main .page-header .entry-title::before { content: 'Step 2 of 3'; }
body.woocommerce-order-received .site-main .page-header .entry-title::before { content: 'Step 3 of 3'; }
body.woocommerce-account .site-main .page-header .entry-title::before { content: 'Your account'; }
body.woocommerce-page .site-main .page-content {
  padding-top: 40px;
  padding-bottom: 72px;
}
body.woocommerce-page .site-main .page-content h2,
body.woocommerce-page .site-main .page-content h3 {
  margin: 0 0 16px;
  color: #292C30;
  font-family: 'Unica One', Impact, Arial, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Cards: white, thin border, rounded, with the coloured top strip the school pages use */
body.woocommerce-page .woocommerce-cart-form,
body.woocommerce-page .cart_totals,
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review,
body.woocommerce-order-received .woocommerce-order ul.order_details,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register,
body.woocommerce-account .woocommerce-MyAccount-content {
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #DAD7CF;
  border-top: 6px solid var(--ch-accent, #C23B2D);
  border-radius: 12px;
  padding: 24px;
  margin: 0 0 32px;
}
/* On Checkout the "Your order" heading and the order box are one card */
body.woocommerce-checkout #order_review_heading {
  margin: 0;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  padding-bottom: 0;
}
body.woocommerce-checkout #order_review {
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding-top: 16px;
}
body.woocommerce-page .woocommerce-cart-form h2,
body.woocommerce-page .cart_totals h2,
body.woocommerce-order-received .woocommerce-order-details h2,
body.woocommerce-order-received .woocommerce-customer-details h2 {
  margin-top: 0;
}

/* Tables: no grey zebra or boxed cells, just thin dividers and small caps column titles */
body.woocommerce-page .site-main table.shop_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  background: transparent;
}
body.woocommerce-page .site-main table.shop_table th,
body.woocommerce-page .site-main table.shop_table td {
  padding: 14px 10px;
  border: 0;
  border-top: 1px solid #DAD7CF;
  background: transparent;
  color: #3A3A4A;
  font-size: 16px;
  line-height: 1.5;
  vertical-align: middle;
  text-align: left;
}
body.woocommerce-page .site-main table.shop_table thead th {
  padding-top: 0;
  padding-bottom: 12px;
  border-top: 0;
  color: #55556A;
  font: 700 12px/1.2 'Open Sans', system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.woocommerce-page .site-main table.shop_table tbody tr:hover td { background: transparent; }
body.woocommerce-page .site-main table.shop_table tfoot th { color: #292C30; font-weight: 700; }
body.woocommerce-page .site-main table.shop_table tr.order-total th,
body.woocommerce-page .site-main table.shop_table tr.order-total td {
  color: #292C30;
  font-size: 18px;
  font-weight: 700;
}
body.woocommerce-page .site-main table.shop_table .includes_tax {
  display: block;
  margin-top: 2px;
  color: #55556A;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
body.woocommerce-page .site-main table.shop_table strong.product-quantity { color: #55556A; font-weight: 400; }
body.woocommerce-page .site-main table.shop_table dl.variation { margin: 6px 0 0; color: #55556A; font-size: 14px; }
/* The programs have no product photo, so the empty photo column is dropped from the cart */
body.woocommerce-cart table.shop_table .product-thumbnail { display: none; }
body.woocommerce-cart .woocommerce table.cart td.product-name a {
  color: #292C30;
  font-weight: 700;
  text-decoration: none;
}
body.woocommerce-cart .woocommerce table.cart td.product-name a:hover { text-decoration: underline; }
body.woocommerce-cart .woocommerce-cart-form td.actions { padding-bottom: 0; text-align: right; }
@media (min-width: 768px) {
  body.woocommerce-cart table.shop_table th.product-price,
  body.woocommerce-cart table.shop_table td.product-price,
  body.woocommerce-cart table.shop_table th.product-subtotal,
  body.woocommerce-cart table.shop_table td.product-subtotal { text-align: right; }
}

/* Cart totals: a card on the right (full width on a phone) */
body.woocommerce-cart .cart-collaterals { display: flex; justify-content: flex-end; }
body.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; max-width: 460px; margin: 0; }
body.woocommerce-cart .wc-proceed-to-checkout { padding: 20px 0 0; margin: 0; }

/* Buttons: outlined by default (Update cart, View, Log in as a first choice), filled for the main
   action in the school's colour. Unica One has one weight, so no bold. */
body.woocommerce-page .woocommerce a.button,
body.woocommerce-page .woocommerce button.button,
body.woocommerce-page .woocommerce input.button,
body.woocommerce-page .woocommerce #place_order,
body.woocommerce-page .woocommerce a.checkout-button {
  display: inline-block;
  box-sizing: border-box;
  padding: 13px 26px;
  border: 2px solid #292C30;
  border-radius: 8px;
  background: transparent;
  color: #292C30;
  font-family: 'Unica One', Impact, Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
body.woocommerce-page .woocommerce a.button:hover,
body.woocommerce-page .woocommerce button.button:hover,
body.woocommerce-page .woocommerce input.button:hover {
  background: #292C30;
  border-color: #292C30;
  color: #ffffff;
}
body.woocommerce-page .woocommerce a.button.alt,
body.woocommerce-page .woocommerce button.button.alt,
body.woocommerce-page .woocommerce a.checkout-button,
body.woocommerce-page .woocommerce #place_order,
body.woocommerce-page .woocommerce button.woocommerce-form-login__submit,
body.woocommerce-page .woocommerce button.woocommerce-form-register__submit {
  background: var(--ch-accent, #C23B2D);
  border-color: var(--ch-accent, #C23B2D);
  color: var(--ch-accent-text, #ffffff);
}
body.woocommerce-page .woocommerce a.button.alt:hover,
body.woocommerce-page .woocommerce button.button.alt:hover,
body.woocommerce-page .woocommerce a.checkout-button:hover,
body.woocommerce-page .woocommerce #place_order:hover,
body.woocommerce-page .woocommerce button.woocommerce-form-login__submit:hover,
body.woocommerce-page .woocommerce button.woocommerce-form-register__submit:hover {
  background: var(--ch-accent-dark, #A53124);
  border-color: var(--ch-accent-dark, #A53124);
  color: var(--ch-accent-text, #ffffff);
}
body.woocommerce-page .woocommerce button.button:disabled,
body.woocommerce-page .woocommerce button.button.disabled,
body.woocommerce-page .woocommerce button.button:disabled[disabled] {
  opacity: .45;
  cursor: not-allowed;
  background: transparent;
  color: #292C30;
  border-color: #292C30;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout #place_order {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
}

/* Form fields */
body.woocommerce-page .woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
body.woocommerce-page .woocommerce form .form-row label {
  display: block;
  margin: 0 0 6px;
  color: #292C30;
  font: 600 14px/1.4 'Open Sans', system-ui, sans-serif;
}
body.woocommerce-page .woocommerce form .form-row .required { border: 0; color: #B3261E; text-decoration: none; }
body.woocommerce-page .woocommerce form .form-row input.input-text,
body.woocommerce-page .woocommerce form .form-row textarea,
body.woocommerce-page .woocommerce form .form-row select {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #767684;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
  color: #292C30;
  font: 400 16px/1.3 'Open Sans', system-ui, sans-serif;
}
body.woocommerce-page .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
body.woocommerce-checkout .woocommerce-privacy-policy-text p { color: #55556A; font-size: 14px; }
body.woocommerce-checkout #payment .form-row.place-order { margin: 0; padding: 16px; }
@media (max-width: 480px) {
  body.woocommerce-page .woocommerce form .form-row-first,
  body.woocommerce-page .woocommerce form .form-row-last { float: none; width: 100%; }
}

/* Notices: white or tinted card with a coloured left edge (blue = information, green = done, red = problem) */
body.woocommerce-page .woocommerce .woocommerce-info,
body.woocommerce-page .woocommerce .woocommerce-message,
body.woocommerce-page .woocommerce .woocommerce-error,
body.woocommerce-page .woocommerce .woocommerce-notice--success {
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #DAD7CF;
  border-left: 4px solid #146A96;
  border-radius: 8px;
  background: #ffffff;
  color: #292C30;
  font-weight: 600;
  list-style: none;
}
body.woocommerce-page .woocommerce .woocommerce-info::before,
body.woocommerce-page .woocommerce .woocommerce-message::before,
body.woocommerce-page .woocommerce .woocommerce-error::before { display: none; }
body.woocommerce-page .woocommerce .woocommerce-message,
body.woocommerce-page .woocommerce .woocommerce-notice--success {
  border-left-color: #1E7B3A;
  background: #E6F4EA;
  color: #14532D;
}
body.woocommerce-page .woocommerce .woocommerce-error {
  border-left-color: #B3261E;
  background: #FDECEA;
  color: #7A1912;
}
body.woocommerce-page .woocommerce .woocommerce-info a,
body.woocommerce-page .woocommerce .woocommerce-message a.button { float: none; }
body.woocommerce-page .woocommerce .woocommerce-notices-wrapper:empty { display: none; }

/* Checkout layout: details on the left, the order and payment on the right (one column below 992px) */
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
body.woocommerce-checkout #customer_details .col-2 { margin-top: 8px; }
@media (min-width: 992px) {
  body.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    column-gap: 32px;
    align-items: start;
  }
  body.woocommerce-checkout form.checkout::before,
  body.woocommerce-checkout form.checkout::after { display: none; }
  body.woocommerce-checkout form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 2; }
  body.woocommerce-checkout form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; }
  body.woocommerce-checkout form.checkout > #order_review { grid-column: 2; grid-row: 2; }
  body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
}

/* Order confirmation: a row of key facts (order number, date, total...) above the details */
body.woocommerce-order-received .woocommerce-notice--success { font-size: 18px; }
/* 1.5.1: tiles wrap and stretch to fill each row (the 1.5.0 grid left grey empty cells when the five
   tiles did not divide evenly). Dividers are the left and top edge of each tile; the -1px margins
   pull them over the neighbour and the card's overflow:hidden clips the outer ones. */
body.woocommerce-order-received .woocommerce-order ul.order_details {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  list-style: none;
}
body.woocommerce-order-received .woocommerce-order ul.order_details::before,
body.woocommerce-order-received .woocommerce-order ul.order_details::after { display: none; }
body.woocommerce-order-received .woocommerce-order ul.order_details li {
  float: none;
  flex: 1 1 170px;
  box-sizing: border-box;
  margin: -1px 0 0 -1px;
  padding: 18px 24px;
  border: 0;
  border-left: 1px solid #DAD7CF;
  border-top: 1px solid #DAD7CF;
  background: #ffffff;
  color: #55556A;
  font: 700 12px/1.2 'Open Sans', system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.woocommerce-order-received .woocommerce-order ul.order_details li.woocommerce-order-overview__email { flex: 2 1 240px; }
body.woocommerce-order-received .woocommerce-order ul.order_details li strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere; /* a long email address wraps inside its tile instead of being cut off */
  margin-top: 8px;
  color: #292C30;
  font: 700 17px/1.3 'Open Sans', system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
body.woocommerce-order-received .woocommerce-customer-details address {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
}

/* My account: log-in card; once signed in, the menu on the left and the content on the right */
body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register { max-width: 520px; }
body.woocommerce-account .woocommerce-form-login .lost_password { margin: 8px 0 0; }
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 16px;
  border: 1px solid #DAD7CF;
  border-radius: 8px;
  background: #ffffff;
  color: #292C30;
  font-weight: 600;
  text-decoration: none;
}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li a:hover { border-color: #292C30; }
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.is-active a {
  border-color: #292C30;
  background: #292C30;
  color: #ffffff;
}
@media (min-width: 768px) {
  body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }
  body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::before,
  body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after { display: none; }
  body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
}

/* Tablet and phone */
@media (max-width: 1024px) {
  body.woocommerce-page .site-main .page-header .entry-title { font-size: 42px; }
}
@media (max-width: 767px) {
  body.woocommerce-page .site-main .page-header { padding: 32px 0 28px; }
  body.woocommerce-page .site-main .page-header .entry-title { font-size: 36px; }
  body.woocommerce-page .site-main .page-content { padding-top: 28px; padding-bottom: 56px; }
  body.woocommerce-page .site-main .page-content h2,
  body.woocommerce-page .site-main .page-content h3 { font-size: 26px; }
  body.woocommerce-page .woocommerce-cart-form,
  body.woocommerce-page .cart_totals,
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review,
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details,
  body.woocommerce-account .woocommerce-form-login,
  body.woocommerce-account .woocommerce-form-register,
  body.woocommerce-account .woocommerce-MyAccount-content { padding: 18px; }
  body.woocommerce-order-received .woocommerce-order ul.order_details li { padding: 14px 18px; }
}

/* ---------- Cart, Checkout, My account: polish after the live check (1.5.1) ---------- */
/* Short pages (an empty cart, the log-in page): keep the footer at the bottom of the window instead of
   leaving a white strip under it. The admin bar (32px, 46px on a phone) is taken off the height. */
body.woocommerce-page { display: flex; flex-direction: column; min-height: 100vh; }
body.woocommerce-page.admin-bar { min-height: calc(100vh - 32px); }
@media (max-width: 782px) {
  body.woocommerce-page.admin-bar { min-height: calc(100vh - 46px); }
}
body.woocommerce-page .site-main { flex: 1 0 auto; }

/* Buttons inside the Orders table are smaller, and a notice's button no longer touches its text */
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content table a.button {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 8px 14px;
  font-size: 16px;
  letter-spacing: 1.5px;
}
body.woocommerce-page .woocommerce .woocommerce-info a.button,
body.woocommerce-page .woocommerce .woocommerce-info button.button,
body.woocommerce-page .woocommerce .woocommerce-message a.button { margin: 0 14px 6px 0; }

/* Account details: the "Password change" group gets the same soft border as the cards */
body.woocommerce-account .woocommerce-MyAccount-content fieldset {
  margin: 8px 0 20px;
  padding: 14px 18px 4px;
  border: 1px solid #DAD7CF;
  border-radius: 8px;
}
body.woocommerce-account .woocommerce-MyAccount-content fieldset legend {
  padding: 0 8px;
  color: #292C30;
  font-weight: 700;
}

@media (max-width: 767px) {
  /* My account menu: two columns of buttons, so the form is not pushed far down the screen */
  body.woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: 1fr 1fr; }
  body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li a { padding: 11px 12px; font-size: 15px; }
  /* Cart: the remove (x) sits at the top right of the item instead of in a row of its own */
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-remove {
    padding: 6px 0 2px;
    border: 0;
    text-align: right;
  }
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-remove a.remove { margin-left: auto; }
}

/* ---------- Header and footer: side padding that lines up with the page (1.3.0) ---------- */
/* Hello Elementor gives the header and footer content no side padding between 576px and 1200px
   wide, so the logo and the footer text touched the screen edge on a tablet or small laptop (and
   sat 10px in on a phone, while the page content sits 20px in). This matches the page's own side
   padding: 56px on a laptop, 32px on a tablet, 20px on a phone. Above 1328px the 1200px column is
   centred by itself and needs none. */
@media (max-width: 1328px) {
  body .site-header .header-inner,
  body .site-footer .footer-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-inline: 56px;
  }
}
@media (max-width: 1024px) {
  body .site-header .header-inner,
  body .site-footer .footer-inner {
    padding-inline: 32px;
  }
  /* The menu button has 15px of its own space on its right, which left it 15px inside the page
     edge while the logo sits exactly on the left edge. Drop it so both ends line up. */
  body .site-header .site-navigation-toggle-holder {
    padding-inline-end: 0;
  }
}
/* Footer on a tablet or small laptop: the copyright line drops to a row of its own under the logo
   and links (it used to sit hard against the logo), with a thin rule above it. Wider than 1215px
   the three parts fit on one row, as before. */
@media (min-width: 768px) and (max-width: 1215px) {
  body .site-footer:not(.footer-stacked) .footer-inner .copyright {
    flex: 0 0 100%;
    justify-content: flex-start;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #3F434A;
  }
}
@media (max-width: 767px) {
  body .site-header .header-inner,
  body .site-footer .footer-inner {
    padding-inline: 20px;
  }

  /* Footer on a phone: logo, links and copyright line share one left edge (they were a mix of
     left and centred), the links wrap in a row with room to tap, and a thin rule sits above the
     copyright line. */
  body .site-footer:not(.footer-stacked) .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }
  body .site-footer:not(.footer-stacked) .footer-inner .site-branding,
  body .site-footer:not(.footer-stacked) .footer-inner .site-navigation,
  body .site-footer:not(.footer-stacked) .footer-inner .copyright,
  body .site-footer:not(.footer-stacked) .footer-inner .copyright p {
    text-align: left;
  }
  body .site-footer .footer-inner .site-navigation ul.menu {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0 24px;
  }
  body .site-footer .footer-inner .site-navigation ul.menu li {
    text-align: left;
  }
  body .site-footer .footer-inner .site-navigation ul.menu li > a {
    padding: 10px 0;
  }
  body .site-footer:not(.footer-stacked) .footer-inner .copyright {
    justify-content: flex-start;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid #3F434A;
  }
}

/* ---------- Basketball touches ---------- */
/* Both are switched on per element in Elementor (Advanced > CSS Classes) and go away if the
   class is removed.
   ch-court: faint half-court lines on the right of a dark band (the hero on each page). It sits
   behind everything, so a hero photo added later simply covers it. Hidden on tablet and phone,
   where the text uses the full width.
   ch-card: a coral strip along the top of a white card, matching the school pages. */
.ch-court {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 940 1000' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='5' stroke-linejoin='round'%3E%3Crect x='560' y='340' width='380' height='320'/%3E%3Ccircle cx='560' cy='500' r='120'/%3E%3Ccircle cx='835' cy='500' r='15'/%3E%3Cpath d='M860 440V560'/%3E%3Cpath d='M835 420A80 80 0 0 0 835 580'/%3E%3Cpath d='M940 60H656A475 475 0 0 0 656 940H940'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 135%;
}
@media (max-width: 1024px) {
  .ch-court { background-image: none; }
}
.elementor-element.ch-card {
  border-top: 4px solid #C23B2D !important;
}
