/* HSE checkout: native course list, requested controls, branding and field focus. */
body.hse-checkout-page {
  --hse-checkout-amber:#FFC84A;
  --hse-checkout-amber-light:#FFD778;
  --hse-checkout-black:#111111;
  --hse-checkout-focus:0 0 0 4px rgba(255,200,74,.3);
}
.wp-block-woocommerce-checkout .wc-block-components-product-name:has(> .hse-checkout-course__remove) {
  display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px 12px;
}
.wp-block-woocommerce-checkout .hse-checkout-course__name { flex:1; min-width:120px; }
/* The Cart block uses WC quantity 1 per event; show the actual ticket count
   from the Store API instead, without changing WC product quantities. */
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__name {
  display:block; min-width:0; overflow-wrap:anywhere;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-event-item .wc-block-cart-item__quantity {
  display:none;
}
/* Distinct, scannable booking items; pricing remains WooCommerce's native total. */
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item.hse-checkout-event-item {
  padding-block:18px; border-bottom:1px solid #E5E5DF;
}
.wp-block-woocommerce-checkout .hse-checkout-event-item .wc-block-components-order-summary-item__description {
  min-width:0; overflow-wrap:anywhere;
}
.wp-block-woocommerce-checkout .hse-checkout-course__participants {
  display:block; width:fit-content; margin-top:6px; padding:4px 9px;
  border:1px solid #E5E5DF; border-radius:999px; background:#F3F4F5;
  color:#333; font-size:13px; font-weight:600; line-height:1.4;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__participants {
  display:block; width:fit-content; margin-top:6px; padding:4px 9px;
  border:1px solid #E5E5DF; border-radius:7px; background:#F3F4F5;
  color:#333; font-size:13px; font-weight:600; line-height:1.4;
}
.wp-block-woocommerce-checkout .hse-checkout-event-item .wc-block-components-product-metadata {
  margin-top:9px; line-height:1.5;
}
/* Cart-only Return to booking remains an underlined text link. */
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-cart-course__booking-note > .hse-checkout-course__event-link {
  color:inherit; text-decoration:underline; text-underline-offset:3px;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-cart-course__booking-note > .hse-checkout-course__event-link:hover { color:#82590F; }
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-cart-course__booking-note > .hse-checkout-course__event-link:active { color:#C0C0C0; }
/* Course titles share typography and soft lift/unlift on Cart and Checkout.
   Link colours are scoped by page; Return to booking retains its own states. */
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__name .hse-checkout-course__title-link,
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__name .hse-checkout-course__title-link:visited,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-course__name .hse-checkout-course__title-link,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-course__name .hse-checkout-course__title-link:visited {
  display:inline-block; max-width:100%; vertical-align:baseline; overflow-wrap:anywhere;
  font-family:Oxanium,system-ui,sans-serif;
  font-size:inherit; font-weight:inherit; line-height:inherit; letter-spacing:inherit;
  text-decoration:none !important; text-underline-offset:initial;
  transform:translateY(0);
  transition:color .26s ease,transform .34s cubic-bezier(.22,1,.36,1);
}
/* Cart course titles: dark amber at rest, silver on hover, black when pressed.
   Existing soft lift and return animation is shared by both training types. */
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__name .hse-checkout-course__title-link,
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__name .hse-checkout-course__title-link:visited {
  color:#82590F;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__name .hse-checkout-course__title-link:is(:hover,:focus-visible) {
  color:#C0C0C0; text-decoration:none !important; transform:translateY(-2px);
}
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__name .hse-checkout-course__title-link:active {
  color:#000; text-decoration:none !important; transform:translateY(0);
}
/* Checkout order summary: amber at rest and lighter amber on hover.
   Keep the existing pressed/active colour unchanged. */
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-course__name .hse-checkout-course__title-link,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-course__name .hse-checkout-course__title-link:visited {
  color:var(--hse-checkout-amber);
}
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-course__name .hse-checkout-course__title-link:is(:hover,:focus-visible) {
  color:var(--hse-checkout-amber-light); text-decoration:none !important; transform:translateY(-2px);
}
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-course__name .hse-checkout-course__title-link:active {
  color:inherit; text-decoration:none !important; transform:translateY(0);
}
/* Online Training thumbnails, including Electrical Safety & Arc Flash,
   share a 1:1 frame at the native Checkout image width in every viewport. */
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item.hse-checkout-online-item .wc-block-components-order-summary-item__image img {
  display:block; width:100%; height:auto; aspect-ratio:1 / 1;
  object-fit:cover; object-position:center; border-radius:6px;
}
/* Keep the native line total at right; avoid a duplicate unit-price line under the course title. */
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-price { display:none; }
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description { min-width:0; overflow-wrap:anywhere; }
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__total-price { flex-shrink:0; white-space:nowrap; }
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-product-badge {
  background:#222 !important; border-color:#222 !important; color:#fff !important; box-shadow:0 0 0 2px #fff;
}
body.hse-checkout-page .wp-block-woocommerce-checkout :is(.wc-block-components-order-summary-item__quantity,.wc-block-components-product-badge) * {
  color:#fff !important; fill:#fff !important;
}
/* Order-summary Remove: same height and soft lift/unlift as Edit Cart,
   with no negative offset into the participant label. Frosted black and
   silver at rest; white on hover; dark-gray left-to-right fill on press. */
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item button.hse-checkout-course__remove {
  position:relative; isolation:isolate; overflow:hidden;
  -webkit-appearance:none; appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  box-sizing:border-box; flex:none; height:34px; min-height:34px;
  padding:0 13px; margin:0; max-width:100%;
  border:1px solid #C0C0C0 !important; border-radius:8px;
  background-color:rgba(0,0,0,.6) !important;
  background-image:linear-gradient(90deg,#383838,#383838) !important;
  background-repeat:no-repeat !important; background-position:left center !important;
  background-size:0% 100% !important;
  color:#fff !important; -webkit-text-fill-color:currentColor;
  font:700 12px/1.2 Oxanium,system-ui,sans-serif;
  text-decoration:none; cursor:pointer; opacity:1; filter:none; box-shadow:none !important;
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  transform:translateY(0);
  transition:background-color .24s ease,background-size .38s cubic-bezier(.22,1,.36,1),
    border-color .24s ease,color .24s ease,transform .24s ease;
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item button.hse-checkout-course__remove:hover {
  background-color:#fff !important; color:#111 !important; border-color:#C0C0C0 !important;
  transform:translateY(-2px);
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item button.hse-checkout-course__remove:active {
  background-color:rgba(0,0,0,.6) !important; background-size:100% 100% !important;
  color:#FFC84A !important; border-color:#C0C0C0 !important; transform:translateY(0);
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item button.hse-checkout-course__remove:disabled {
  cursor:wait; opacity:.6; background-size:0% 100% !important; color:#fff !important;
}
/* A single Edit Cart action beside the desktop order-summary heading.
   On tablet/mobile it sits below the title/total toggle, outside the toggle
   itself so it works when the accordion is either open or closed. */
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-summary--editable {
  position:relative;
}
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-summary__edit-cart {
  display:inline-flex; align-items:center; justify-content:center;
  width:fit-content; min-height:34px; padding:8px 13px; margin:9px 0 12px;
  border:1px solid #FFC84A; border-radius:8px;
  background-color:#FFC84A;
  background-image:linear-gradient(90deg,#fff,#fff);
  background-repeat:no-repeat; background-position:left center; background-size:0% 100%;
  color:#111; -webkit-text-fill-color:currentColor;
  font:700 12px/1.2 Oxanium,system-ui,sans-serif;
  letter-spacing:.015em; text-decoration:none; white-space:nowrap;
  cursor:pointer; opacity:1; filter:none;
  transition:background-color .24s ease,background-size .38s cubic-bezier(.22,1,.36,1),
    border-color .24s ease,color .24s ease,transform .24s ease,box-shadow .24s ease;
}
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-summary__edit-cart:hover {
  background-color:#FFD778; color:#111; border-color:#FFD778; transform:translateY(-2px);
}
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-summary__edit-cart:active {
  background-color:#FFC84A; background-size:100% 100%; color:#111;
  border-color:rgba(255,200,74,.85); transform:translateY(0);
  box-shadow:0 0 0 3px rgba(255,200,74,.27),0 0 19px rgba(255,200,74,.42);
}
/* WooCommerce uses a two-column checkout at a container width of 920px+.
   Put Edit Cart at the far right of the order-summary heading, aligned with
   the product totals. In the stacked layout, keep it below the header. */
@container (min-width:920px) {
  body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-summary__edit-cart {
    position:absolute; inset-block-start:19px; inset-inline-end:10px; margin:0;
  }
}
.hse-checkout-messages { margin:0; padding:0; border:0; }
.hse-checkout-messages .hse-checkout-course-items__error {
  margin:0 0 14px; padding:12px; border:1px solid #FFC84A; border-radius:8px;
  background:#FFF3D2; color:#82590F;
}
.hse-checkout-square-logo { margin:24px 0 12px; }
.hse-checkout-square-logo img { display:block; width:120px; height:auto; }
.hse-checkout-navigation { margin-bottom:24px; }
.hse-checkout-navigation .wp-block-button__link,
.hse-checkout-back-to-event .wp-block-button__link {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:46px; padding:12px 18px; border:1px solid #111; border-radius:10px;
  background:#111; color:#fff;
  text-decoration:none; opacity:1; filter:none;
  transition:background-color .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease;
}
/* One typography definition for all three navigation buttons at every viewport. */
body.hse-checkout-page .hse-checkout-navigation .wp-block-button .wp-block-button__link {
  font:700 12px/1.35 Oxanium,system-ui,sans-serif;
  letter-spacing:.025em; text-transform:uppercase;
}
/* Checkout navigation can wrap naturally on narrow screens without changing button type. */
body.hse-checkout-page .hse-checkout-navigation {
  display:flex; align-items:center; flex-wrap:wrap; gap:10px 12px;
}
/* Online Training catalogue button: alternate amber treatment. All three
   navigation buttons inherit identical typography from the shared rule above.
   Only pressing this button reveals the white fill from left to right. */
body.hse-checkout-page .hse-checkout-online-catalogue .wp-block-button__link {
  position:relative; isolation:isolate; overflow:hidden;
  margin:0;
  border-color:#FFC84A;
  background-color:#FFC84A;
  background-image:linear-gradient(90deg,#fff,#fff);
  background-repeat:no-repeat;
  background-position:left center;
  background-size:0% 100%;
  color:#111;
  transition:background-color .22s ease,background-size .36s cubic-bezier(.22,1,.36,1),color .22s ease,transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
body.hse-checkout-page .hse-checkout-online-catalogue .wp-block-button__link:hover {
  background-color:#FFDD8F; color:#111; border-color:#FFDD8F; transform:translateY(-2px);
}
body.hse-checkout-page .hse-checkout-online-catalogue .wp-block-button__link:active {
  background-color:#FFC84A; background-size:100% 100%;
  color:#111; border-color:#FFC84A; transform:translateY(0);
  box-shadow:0 0 0 4px rgba(255,200,74,.26),0 0 22px rgba(255,200,74,.3);
}
/* Back to Booking retains its original white active animation. */
.hse-checkout-back-to-event .wp-block-button__link {
  position:relative; isolation:isolate; overflow:hidden;
}
.hse-checkout-back-to-event .wp-block-button__link::before {
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:#fff; transform:translateX(-101%);
  transition:transform .36s cubic-bezier(.22,1,.36,1);
}
.hse-checkout-navigation .wp-block-button__link:hover,
.hse-checkout-back-to-event .wp-block-button__link:hover {
  background:#FFC84A; color:#000; border-color:#FFC84A; transform:translateY(-2px);
}
.hse-checkout-navigation .wp-block-button__link:active { transform:translateY(0); }
.hse-checkout-back-to-event .wp-block-button__link:active {
  transform:translateY(0); background:#111; color:#000;
  border-color:#FFC84A;
  box-shadow:0 0 0 4px rgba(255,200,74,.26),0 0 22px rgba(255,200,74,.3),inset 0 1px rgba(255,255,255,.2);
}
.hse-checkout-back-to-event .wp-block-button__link:active::before {
  transform:translateX(0);
}


/* Cart and Checkout shopper notices: preserve WooCommerce's native notice
   messages, icons, dismissal and accessibility roles. Keep info and errors
   clearly differentiated with HSE Elements' amber and charcoal palette. */
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner:is(.is-info,.is-error),
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.woocommerce-info,.woocommerce-error) {
  box-sizing:border-box; width:100%; max-width:100%; min-width:0;
  margin-block:12px; padding:clamp(12px,1.4vw,17px) clamp(14px,1.8vw,20px) !important;
  border:1px solid; border-radius:12px;
  font:500 clamp(13px,1.15vw,15px)/1.55 Oxanium,system-ui,sans-serif;
  overflow-wrap:anywhere;
  box-shadow:0 6px 20px rgba(17,17,17,.07);
}
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner:is(.is-info,.is-error) {
  display:flex; align-items:flex-start; gap:clamp(10px,1.3vw,15px);
}
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner:is(.is-info,.is-error) .wc-block-components-notice-banner__content {
  flex:1; min-width:0; margin:0; align-self:center;
  font:inherit; color:inherit;
}
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner:is(.is-info,.is-error) .wc-block-components-notice-banner__content :is(p,ul,ol) {
  margin-block:0; color:inherit;
}
/* Quantity changes and other informational notices: light amber. */
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner.is-info,
body:is(.hse-training-cart-page,.hse-checkout-page) .woocommerce-info {
  background:#FFF3D2 !important; border-color:#D89B2B !important;
  color:#82590F !important;
}
/* Checkout validation, including the fix-errors summary: charcoal warning. */
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner.is-error,
body:is(.hse-training-cart-page,.hse-checkout-page) .woocommerce-error {
  background:#2C251E !important; border-color:#D89B2B !important;
  color:#FFFFFF !important;
}
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner:is(.is-info,.is-error) > svg {
  box-sizing:content-box; display:block; flex:0 0 22px;
  width:22px; height:22px; padding:5px;
  border-radius:50%; background:#FFC84A;
  color:#382910; fill:#382910; stroke:#382910;
}
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner:is(.is-info,.is-error) > svg :is(path,circle,polyline,line) {
  fill:currentColor; stroke:currentColor;
}
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.woocommerce-info,.woocommerce-error)::before {
  color:#D89B2B;
}
/* Keep links readable on either notice background; leave actions intact. */
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner.is-info .wc-block-components-notice-banner__content a,
body:is(.hse-training-cart-page,.hse-checkout-page) .woocommerce-info a { color:#6C4A0D; text-decoration:underline; }
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__content a,
body:is(.hse-training-cart-page,.hse-checkout-page) .woocommerce-error a { color:#FFD778; text-decoration:underline; }

/* Preserve the existing confirmed-success notification design. */
body.hse-checkout-page .wc-block-components-notice-banner.is-success,
body.hse-checkout-page .wc-block-components-notice-banner[aria-label*='success' i],
body.hse-checkout-page .wc-block-components-notices .woocommerce-message {
  border-color:#FFC84A !important;
  background:#FFF3D2 !important;
  color:#82590F !important;
  outline:none !important;
  box-shadow:none !important;
}
body.hse-checkout-page :is(.wc-block-components-notice-banner.is-success,.wc-block-components-notice-banner[aria-label*='success' i]) {
  display:flex; align-items:center; gap:16px;
}
body.hse-checkout-page :is(.wc-block-components-notice-banner.is-success,.wc-block-components-notice-banner[aria-label*='success' i]) .wc-block-components-notice-banner__content {
  display:flex; flex:1; flex-wrap:wrap; align-self:center; align-items:center; justify-content:space-between;
  gap:14px 24px; min-width:0; margin:0; line-height:1.5;
}
body.hse-checkout-page :is(.wc-block-components-notice-banner.is-success,.wc-block-components-notice-banner[aria-label*='success' i]) > svg {
  align-self:center; flex-shrink:0;
}
/* Cart/Checkout notification focus: dismissing a WooCommerce notice can
   return focus to the notice region, an intermediate tabindex=-1 element,
   or the Cart/Checkout block itself. Remove ONLY those non-interactive
   container focus rings; keep notice borders, coupon handling, and form
   control focus styles unchanged. */
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notices,.wc-block-components-notices__notification,.wc-block-components-notice-banner,.wc-block-components-notice-banner__content,.woocommerce-notices-wrapper,.woocommerce-NoticeGroup,.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-snackbar-list,.components-snackbar-list,.components-snackbar,.components-notice):is(:focus,:focus-visible,:focus-within),
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout,.wc-block-cart,.wc-block-checkout,.wc-block-components-main,.wc-block-cart__main,.wc-block-checkout__main):is(:focus,:focus-visible),
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout,.wc-block-components-notices,.woocommerce-notices-wrapper,.woocommerce-NoticeGroup) :is([tabindex='-1'],[role='alert'],[role='status']):is(:focus,:focus-visible) {
  outline:none !important;
  box-shadow:none !important;
}
/* Notice close control: soft lift on hover, unlift on press. Only the icon
   colour changes; the notice background and dismiss action stay native. */
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss) {
  transform:translateY(0);
  transition:transform .36s cubic-bezier(.22,1,.36,1),color .26s ease;
}
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss):focus:not(:focus-visible) {
  outline:none !important; box-shadow:none !important;
}
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss):focus-visible {
  outline:3px solid #82590F !important; outline-offset:2px;
  box-shadow:0 0 0 2px rgba(255,200,74,.25) !important;
}
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss):hover {
  color:#444444 !important;
  transform:translateY(-2px);
}
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss):active {
  color:#000000 !important;
  transform:translateY(0);
}
/* Error dismiss control stays visible against the dark warning surface. */
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__dismiss {
  color:#FFFFFF !important;
}
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__dismiss:hover {
  color:#FFD778 !important;
}
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__dismiss:active {
  color:#FFFFFF !important;
}
body:is(.hse-training-cart-page,.hse-checkout-page) .wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__dismiss:focus-visible {
  outline-color:#FFC84A !important;
}
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss) svg {
  color:inherit !important;
  transition:color .26s ease;
}
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss) svg [fill]:not([fill='none']) {
  fill:currentColor !important;
}
body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss) svg [stroke]:not([stroke='none']) {
  stroke:currentColor !important;
}
body.hse-checkout-page .wc-block-components-notice-banner.is-success :is(a,button,svg,path):not(:is(.wc-block-components-notice-banner__dismiss,.wc-block-components-notice-banner__dismiss *)),
body.hse-checkout-page .wc-block-components-notice-banner[aria-label*='success' i] :is(a,button,svg,path):not(:is(.wc-block-components-notice-banner__dismiss,.wc-block-components-notice-banner__dismiss *)),
body.hse-checkout-page .wc-block-components-notices .woocommerce-message :is(a,button,svg,path):not(:is(.wc-block-components-notice-banner__dismiss,.wc-block-components-notice-banner__dismiss *)) {
  color:#82590F !important;
  fill:currentColor !important;
  stroke:currentColor !important;
}
body.hse-checkout-page .wc-block-components-notice-banner.is-success > svg,
body.hse-checkout-page .wc-block-components-notice-banner[aria-label*='success' i] > svg {
  padding:8px; border-radius:999px; background:#FFC84A;
  box-sizing:content-box;
}
body.hse-checkout-page .wc-block-components-notice-banner.is-success > svg :is(path,circle,polyline,line),
body.hse-checkout-page .wc-block-components-notice-banner[aria-label*='success' i] > svg :is(path,circle,polyline,line) {
  fill:#82590F !important;
  stroke:#82590F !important;
}
/* Coupon applied/removed notices on Cart and Checkout only.
   WooCommerce retains the message, icon shape, close control and notice logic. */
body.hse-training-cart-page .wc-block-components-notice-banner.hse-coupon-notice,
body.hse-checkout-page .wc-block-components-notice-banner.hse-coupon-notice,
body.hse-training-cart-page .woocommerce-info.hse-coupon-notice,
body.hse-checkout-page .woocommerce-info.hse-coupon-notice {
  background:#FFF3D2 !important;
}
body.hse-training-cart-page .wc-block-components-notice-banner.hse-coupon-notice > svg,
body.hse-checkout-page .wc-block-components-notice-banner.hse-coupon-notice > svg {
  background-color:#FFC84A !important;
}
body.hse-training-cart-page .wc-block-components-notice-banner.hse-coupon-notice > svg :is(path,circle,polyline,line),
body.hse-checkout-page .wc-block-components-notice-banner.hse-coupon-notice > svg :is(path,circle,polyline,line) {
  fill:#82590F !important;
  stroke:#82590F !important;
}
body.hse-training-cart-page .woocommerce-info.hse-coupon-notice::before,
body.hse-checkout-page .woocommerce-info.hse-coupon-notice::before {
  color:#D89B2B !important;
}
/* Native WooCommerce and Blocks View Cart actions use the same amber button. */
body.hse-checkout-page :is(.wc-block-components-notice-banner.is-success,.wc-block-components-notice-banner[aria-label*='success' i],.woocommerce-message) :is(a.wc-forward,a.button,a[href*="/cart"]) {
  display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center;
  width:auto !important; max-width:100%; min-width:160px; min-height:56px;
  padding:16px 28px !important;
  border:1px solid var(--hse-checkout-amber) !important; border-radius:14px !important;
  background:var(--hse-checkout-amber) !important; color:#000 !important;
  -webkit-text-fill-color:#000 !important; opacity:1 !important; filter:none !important;
  font-family:Oxanium,system-ui,sans-serif; font-size:16px; font-weight:700;
  letter-spacing:.025em; line-height:1.35; text-transform:uppercase; white-space:nowrap;
  text-decoration:none !important; box-shadow:0 5px 16px rgba(17,17,17,.08);
  transition:background-color .25s ease,border-color .25s ease,color .25s ease,transform .25s ease,box-shadow .25s ease;
}
body.hse-checkout-page :is(.wc-block-components-notice-banner.is-success,.wc-block-components-notice-banner[aria-label*='success' i],.woocommerce-message) :is(a.wc-forward,a.button,a[href*="/cart"]) :is(span,strong,b) {
  color:#000 !important; -webkit-text-fill-color:#000 !important; opacity:1 !important;
}
body.hse-checkout-page :is(.wc-block-components-notice-banner.is-success,.wc-block-components-notice-banner[aria-label*='success' i],.woocommerce-message) :is(a.wc-forward,a.button,a[href*="/cart"]):hover {
  background:var(--hse-checkout-amber-light) !important; border-color:var(--hse-checkout-amber-light) !important;
  color:#000 !important; transform:translateY(-2px); box-shadow:0 9px 22px rgba(17,17,17,.12) !important;
}
body.hse-checkout-page :is(.wc-block-components-notice-banner.is-success,.wc-block-components-notice-banner[aria-label*='success' i],.woocommerce-message) :is(a.wc-forward,a.button,a[href*="/cart"]):active {
  background:#FFE0A0 !important; border-color:var(--hse-checkout-amber) !important;
  color:#000 !important; transform:translateY(0); box-shadow:0 0 0 3px rgba(255,200,74,.2) !important;
}
body.hse-checkout-page :is(.wc-block-components-notice-banner.is-success,.wc-block-components-notice-banner[aria-label*='success' i],.woocommerce-message) :is(a.wc-forward,a.button,a[href*="/cart"]):is(:focus,:focus-visible) {
  outline:none !important; box-shadow:none !important;
}

/* Coupon controls: keep WooCommerce's native forms and submission behaviour.
   Cart: no underline on Apply; no focus ring around the coupon panel,
   Add coupon disclosure, or Enter code field. Keep the input's normal border. */
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button,
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button :is(.wc-block-components-button__text,span) {
  text-decoration:none !important;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button:is(:hover,:active,:focus,:focus-visible),
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button:is(:hover,:active,:focus,:focus-visible) :is(.wc-block-components-button__text,span) {
  text-decoration:none !important;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-wrapper:has(.wc-block-components-totals-coupon):is(:focus,:focus-visible,:focus-within),
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon:is(:focus,:focus-visible,:focus-within),
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__content:is(:focus,:focus-visible,:focus-within),
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__form:is(:focus,:focus-visible,:focus-within),
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:is(:focus,:focus-visible),
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:is(:focus,:focus-visible) *,
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__input:is(:focus,:focus-visible,:focus-within),
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__input input:is(:focus,:focus-visible),
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button:is(:focus,:focus-visible) {
  outline:none !important;
  box-shadow:none !important;
}
/* The Enter code field keeps a consistent, neutral border while focused. */
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__input:is(.is-active,:focus-within),
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__input input:is(:focus,:focus-visible) {
  border-color:#D1D5DB !important;
}
/* Cart Apply: preserve initial/hover; on press, return to rest with white,
   black text and a frosted amber border glow. No change to coupon handling. */
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button {
  transition:transform .34s cubic-bezier(.22,1,.36,1),background-color .22s ease,color .22s ease,border-color .22s ease,box-shadow .22s ease;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button:active {
  background:#fff !important; color:#000 !important; border-color:#FFC84A !important;
  box-shadow:0 0 0 3px rgba(255,200,74,.35),0 0 15px rgba(255,200,74,.28) !important;
  transform:translateY(0) !important;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button:active :is(.wc-block-components-button__text,span) {
  color:#000 !important;
}
/* Checkout: remove only Apply's focus border/ring, retaining its button styling
   and existing hover lift. Pressing Apply softly returns it to rest. */
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button {
  transition:transform .34s cubic-bezier(.22,1,.36,1),background-color .22s ease,color .22s ease,border-color .22s ease,box-shadow .22s ease;
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button:is(:focus,:focus-visible) {
  outline:none !important;
  box-shadow:none !important;
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button:active {
  background:#fff !important; color:#000 !important; border-color:#FFC84A !important;
  box-shadow:0 0 0 3px rgba(255,200,74,.35),0 0 15px rgba(255,200,74,.28) !important;
  transform:translateY(0) !important;
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button:active :is(.wc-block-components-button__text,span) {
  color:#000 !important;
}
/* WooCommerce's actual inline coupon validation error. Use a dark, frosted
   amber surface so the requested white text remains readable; the warning
   symbol is amber. Cart uses a smaller font; Checkout retains its size. */
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__content .wc-block-components-validation-error,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__content .wc-block-components-validation-error {
  position:relative; display:block; width:100%; box-sizing:border-box;
  margin:10px 0 0; padding:10px 12px 10px 42px;
  border:1px solid rgba(255,200,74,.62); border-radius:9px;
  background:rgba(82,57,21,.91); color:#fff;
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  box-shadow:0 5px 15px rgba(17,17,17,.08);
  font-family:Oxanium,system-ui,sans-serif;
  font-weight:600; line-height:1.5;
}
/* Make the Cart coupon message itself smaller at every viewport: WooCommerce
   may apply a larger font directly to its inner message paragraph. */
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__content .wc-block-components-validation-error,
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__content .wc-block-components-validation-error p {
  font-size:12px !important; line-height:1.45;
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__content .wc-block-components-validation-error { font-size:13px; }
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__content .wc-block-components-validation-error::before,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__content .wc-block-components-validation-error::before {
  content:"!"; position:absolute; left:12px; top:50%; transform:translateY(-50%);
  display:flex; align-items:center; justify-content:center;
  width:20px; height:20px; box-sizing:border-box;
  border:1.5px solid #FFC84A; border-radius:50%;
  background:rgba(255,200,74,.1); color:#FFC84A;
  font:700 13px/1 Oxanium,system-ui,sans-serif;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__content .wc-block-components-validation-error p,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__content .wc-block-components-validation-error p {
  margin:0; color:#fff;
}
/* Only the styled amber error marker should remain: hide WooCommerce's small
   built-in warning icon within the same coupon message on Cart and Checkout. */
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__content .wc-block-components-validation-error svg,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__content .wc-block-components-validation-error svg,
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__content .wc-block-components-validation-error .wc-block-components-validation-error__icon,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__content .wc-block-components-validation-error .wc-block-components-validation-error__icon {
  display:none !important;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__content .wc-block-components-validation-error p::before,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__content .wc-block-components-validation-error p::before {
  content:none !important; display:none !important;
}
/* The X beside an entered code clears the field only. WooCommerce continues
   to validate codes and remove already-applied coupons through native controls. */
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__input,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__input { position:relative; }
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__input input,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__input input { padding-right:49px; }
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code {
  position:absolute; z-index:2; top:50%; right:7px; transform:translateY(-50%);
  display:flex; align-items:center; justify-content:center;
  width:32px; height:32px; padding:0; margin:0;
  border:1px solid rgba(255,200,74,.5); border-radius:9px;
  background:rgba(255,200,74,.12); color:#82590F;
  cursor:pointer; box-shadow:none;
  transition:background-color .22s ease,color .22s ease,border-color .22s ease,
             transform .32s cubic-bezier(.22,1,.36,1);
}
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code[hidden],
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code[hidden] { display:none; }
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code::before,
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code::after,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code::before,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code::after {
  content:""; position:absolute; width:13px; height:2px;
  border-radius:2px; background:currentColor;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code::before,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code::before { transform:rotate(45deg); }
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code::after,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code::after { transform:rotate(-45deg); }
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code:hover,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code:hover {
  background:rgba(255,200,74,.45); color:#111; border-color:#FFC84A;
  transform:translateY(calc(-50% - 2px));
}
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code:active,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code:active {
  background:#FFC84A; color:#000; border-color:#FFC84A;
  transform:translateY(-50%);
}
body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code:focus-visible,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code:focus-visible {
  outline:2px solid #82590F; outline-offset:2px;
}
/* Keep the existing WooCommerce applied-coupon remove action; only make its X
   easier to identify. Never duplicate or replace the removal functionality. */
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-chip__remove,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-chip__remove {
  border-radius:50%; color:#82590F; cursor:pointer;
}
body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-chip__remove:hover,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-chip__remove:hover {
  background:rgba(255,200,74,.25); color:#111;
}

/* Checkout's native empty-cart state: a soft amber cart tile. */
body.hse-checkout-page .wc-block-checkout-empty svg {
  display:block; width:152px; height:152px; max-width:100%;
  margin:0 auto 24px; padding:24px;
  box-sizing:border-box; border:1px solid #F2B940; border-radius:24px;
  background:#FFC84A; color:#111; fill:currentColor;
  box-shadow:0 6px 18px rgba(17,17,17,.07);
  transform:translateY(0);
  transition:transform .32s ease,box-shadow .32s ease,background-color .32s ease;
}
body.hse-checkout-page .wc-block-checkout-empty svg:hover {
  transform:translateY(-4px); background:#FFD778;
  box-shadow:0 12px 24px rgba(17,17,17,.12);
}
body.hse-checkout-page .wc-block-checkout-empty svg:active {
  transform:translateY(0); background:#FFE0A0;
  box-shadow:0 0 0 4px rgba(255,200,74,.2);
}

/* Place Order: the native action and processing state remain intact. */
body.hse-checkout-page .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  position:relative; isolation:isolate; overflow:hidden;
  min-height:56px; padding:16px 26px; border:1px solid var(--hse-checkout-amber); border-radius:14px;
  background:var(--hse-checkout-amber); color:#000;
  font-family:Oxanium,system-ui,sans-serif; font-size:16px; font-weight:700; letter-spacing:.025em;
  line-height:1.35; text-transform:uppercase;
  box-shadow:0 5px 16px rgba(17,17,17,.08); opacity:1; filter:none;
  transition:background-color .25s ease,border-color .25s ease,color .25s ease,transform .25s ease,box-shadow .25s ease;
}
body.hse-checkout-page .wc-block-components-checkout-place-order-button .wc-block-components-button__text {
  position:relative; z-index:1; color:inherit; opacity:1;
}
body.hse-checkout-page .wc-block-components-checkout-place-order-button::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:#fff; transform:translateX(-101%); transition:transform .32s ease;
}
body.hse-checkout-page .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover:not(:disabled) {
  background:var(--hse-checkout-amber-light); color:#000;
  border-color:var(--hse-checkout-amber-light); transform:translateY(-2px);
  box-shadow:0 9px 22px rgba(17,17,17,.12);
}
body.hse-checkout-page .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:active:not(:disabled) {
  color:#000; border-color:var(--hse-checkout-amber); transform:translateY(0);
  box-shadow:0 0 0 3px rgba(255,200,74,.2);
}
body.hse-checkout-page .wc-block-components-checkout-place-order-button:active:not(:disabled)::before { transform:translateX(0); }
body.hse-checkout-page .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:disabled {
  opacity:.6; cursor:wait; transform:none; box-shadow:none;
}

/* Existing checkout header branding. No second header or logo is inserted. */
body.hse-checkout-page header .wp-block-site-logo img,
body.hse-checkout-page header img[src*="hse_elements_full_logo_master_flat_yellow_full_bleed_wordmark_landscape"],
body.hse-checkout-page .hse-checkout-header__logo img {
  display:block; width:240px; max-width:100%; height:auto; max-height:none;
  object-fit:contain; object-position:left center;
}
body.hse-checkout-page header .wp-block-site-logo a,
body.hse-checkout-page .hse-checkout-header__logo a {
  display:inline-flex; align-items:center; padding:10px 0; border-radius:6px;
}
body.hse-checkout-page :is(.wc-block-cart-link,.wc-block-mini-cart__button,.wc-block-components-checkout-return-to-cart-button) {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:46px; padding:11px 18px; border:1px solid #111; border-radius:12px;
  background:#111; color:#fff; font:inherit; font-weight:600; line-height:1.3;
  text-decoration:none; opacity:1; filter:none;
  transition:background-color .24s ease,color .24s ease,border-color .24s ease,transform .24s ease,box-shadow .24s ease;
}
body.hse-checkout-page :is(.wc-block-cart-link,.wc-block-mini-cart__button,.wc-block-components-checkout-return-to-cart-button) svg {
  width:22px; height:22px; color:inherit; fill:currentColor;
}
body.hse-checkout-page :is(.wc-block-cart-link,.wc-block-mini-cart__button,.wc-block-components-checkout-return-to-cart-button):hover {
  background:var(--hse-checkout-amber); color:#000; border-color:var(--hse-checkout-amber);
  transform:translateY(-2px); box-shadow:0 7px 18px rgba(17,17,17,.1);
}
body.hse-checkout-page :is(.wc-block-cart-link,.wc-block-mini-cart__button,.wc-block-components-checkout-return-to-cart-button):active {
  background:#fff; color:#000; border-color:var(--hse-checkout-amber);
  transform:translateY(0); box-shadow:0 0 0 3px rgba(255,200,74,.2);
}

/* Billing Address: apartment/suite reveal link only.
   Leave its native click and keyboard behaviour to WooCommerce. */
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
  display:inline-block;
  color:#82590F;
  transform:translateY(0);
  transition:color .2s ease,transform .2s ease;
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle:hover {
  color:#A6A8AB;
  transform:translateY(-2px);
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle:active {
  color:#111;
  transform:translateY(0);
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle:focus {
  outline:none;
  box-shadow:none;
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle:focus-visible {
  outline:2px solid #82590F;
  outline-offset:3px;
}

/* Form focus: use WooCommerce's field outlines; keep validation and dropdown logic native. */
body.hse-checkout-page .wp-block-woocommerce-checkout :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus {
  outline:none; background-color:#fff; color:#111; border-color:var(--hse-checkout-amber);
  box-shadow:var(--hse-checkout-focus);
}
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control__input:focus,
body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-combobox.is-active .wc-block-components-combobox-control__input {
  background-color:#fff; color:#111; border-color:var(--hse-checkout-amber); box-shadow:var(--hse-checkout-focus);
}
body.hse-checkout-page .wp-block-woocommerce-checkout :is(.wc-block-components-text-input,.wc-block-components-combobox) :is(input,select,textarea) {
  transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
body.hse-checkout-page .wp-block-woocommerce-checkout :is(input,select,textarea)[aria-invalid="true"] {
  border-color:#B42318;
}
body.hse-checkout-page .wp-block-woocommerce-checkout :is(input,select,textarea)[aria-invalid="true"]:focus {
  box-shadow:0 0 0 4px rgba(180,35,24,.15);
}
.wp-block-woocommerce-checkout .hse-checkout-course__remove:focus-visible,
body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-summary__edit-cart:focus-visible,
.hse-checkout-navigation a:focus-visible,
.hse-checkout-online-catalogue a:focus-visible,
.hse-checkout-back-to-event a:focus-visible,
body.hse-checkout-page :is(.wc-block-components-checkout-place-order-button,.wc-block-cart-link,.wc-block-mini-cart__button,.wc-block-components-checkout-return-to-cart-button):focus-visible,
body.hse-checkout-page header .wp-block-site-logo a:focus-visible,
body.hse-checkout-page .hse-checkout-header__logo a:focus-visible {
  outline:3px solid #82590F; outline-offset:4px;
}
/* Mobile checkout: remove WooCommerce's informational guest-status sentence only.
   Guest checkout itself and all account/payment settings remain unchanged. */
@media (max-width:767px) {
  body.hse-checkout-page .wp-block-woocommerce-checkout p.wc-block-checkout__guest-checkout-notice {
    display:none;
  }
}
@media (max-width:600px) {
  body.hse-checkout-page header .wp-block-site-logo img,
  body.hse-checkout-page header img[src*="hse_elements_full_logo_master_flat_yellow_full_bleed_wordmark_landscape"],
  body.hse-checkout-page .hse-checkout-header__logo img { width:180px; }
  body.hse-checkout-page :is(.wc-block-cart-link,.wc-block-mini-cart__button) { padding:10px 13px; }
  body.hse-checkout-page .wc-block-checkout-empty svg {
    width:128px; height:128px; padding:19px; border-radius:20px;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code,
  body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code { transition:none; }
  body.hse-training-cart-page .wp-block-woocommerce-cart .hse-coupon-clear-code:is(:hover,:active),
  body.hse-checkout-page .wp-block-woocommerce-checkout .hse-coupon-clear-code:is(:hover,:active) { transform:translateY(-50%); }
  body.hse-training-cart-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button { transition:none; }
  body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__name .hse-checkout-course__title-link,
  body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-course__name .hse-checkout-course__title-link { transition:none; }
  body.hse-training-cart-page .wp-block-woocommerce-cart .hse-checkout-course__name .hse-checkout-course__title-link:is(:hover,:focus-visible,:active),
  body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-course__name .hse-checkout-course__title-link:is(:hover,:focus-visible,:active) { transform:none; }
  body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button { transition:none; }
  body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button:active { transform:none !important; }
  body.hse-checkout-page .wp-block-woocommerce-checkout :is(input,select,textarea),
  body.hse-checkout-page :is(.wc-block-components-checkout-place-order-button,.wc-block-components-checkout-place-order-button::before,.wc-block-cart-link,.wc-block-mini-cart__button,.wc-block-components-checkout-return-to-cart-button),
  .wp-block-woocommerce-checkout .hse-checkout-course__remove,
  body.hse-checkout-page .wp-block-woocommerce-checkout .hse-checkout-summary__edit-cart,
  .hse-checkout-navigation .wp-block-button__link,
  .hse-checkout-online-catalogue .wp-block-button__link,
  .hse-checkout-back-to-event .wp-block-button__link,
  .hse-checkout-back-to-event .wp-block-button__link::before,
  body.hse-checkout-page .wc-block-checkout-empty svg { transition:none; }
  body.hse-checkout-page .wc-block-checkout-empty svg:is(:hover,:active) { transform:none; }
  body.hse-checkout-page .wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle { transition:none; }
  body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss),
  body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss) svg { transition:none; }
  body:is(.hse-training-cart-page,.hse-checkout-page) :is(.wc-block-components-notice-banner,.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(.wc-block-components-notice-banner__dismiss,.woocommerce-message__dismiss,.woocommerce-info__dismiss,.woocommerce-error__dismiss):is(:hover,:active) { transform:none; }
}
body.hse-checkout-page .hse-checkout-header { padding:14px clamp(16px,4vw,48px); }
body.hse-checkout-page .hse-checkout-header__logo { margin:0; min-width:0; }
