/* Shared review tokens and WPC Fly Cart; needed wherever the header cart is available. */
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) {
  --ffehbo-review-ink: var(--e-global-color-secondary);
  --ffehbo-review-paper: var(--e-global-color-background);
  --ffehbo-review-line: var(--e-global-color-border);
  --ffehbo-review-muted: var(--cmsmasters-colors-text);
  --ffehbo-review-neutral: color-mix(in srgb, var(--ffehbo-review-line) 22%, var(--ffehbo-review-paper));
}
body.woocommerce-checkout form.ffehbo-checkout-layout #order_review .ffehbo-order-attribute,
body:not(.wp-admin) #woofc-area .ffehbo-cart-variation {
  background: transparent;
  color: var(--ffehbo-review-muted);
  font-size: var(--ffehbo-font-size-meta);
}
body.woocommerce-checkout form.ffehbo-checkout-layout #order_review table.shop_table tfoot .order-total > *,
body:not(.wp-admin) #woofc-area .woofc-area-bot .woofc-total {
  padding: 12px 20px;
  border: 0;
  background: color-mix(in srgb, var(--e-global-color-accent) 48%, var(--ffehbo-review-paper));
  color: var(--ffehbo-review-ink);
  font-size: var(--ffehbo-font-size-card-price);
  font-weight: var(--cmsmasters-h4-font-weight, 700);
}
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) .ffehbo-order-delivery--compact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 8px 0;
  border: 0;
  border-radius: 9px;
  background: var(--ffehbo-review-neutral);
  color: var(--ffehbo-review-ink);
  font-size: var(--ffehbo-font-size-label);
  line-height: var(--ffehbo-line-height-compact);
  white-space: normal;
  text-align: left;
}
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) .ffehbo-order-delivery--compact .ffehbo-order-delivery__icon {
  display: block;
  width: 42px;
  height: 34px;
  border-right: 1px solid var(--ffehbo-review-line);
  background: var(--ffehbo-review-muted);
  mask: url('../images/icons/truck.svg') left center / 30px no-repeat;
}
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) .ffehbo-order-delivery--compact > div {
  border-left: 1px solid var(--ffehbo-review-line);
  padding-left: 12px;
  margin-left: -12px;
}
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) .ffehbo-order-delivery--compact :is(strong, div > span) { display: block; overflow-wrap: anywhere; }
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) .ffehbo-order-delivery--compact div > span { color: var(--ffehbo-review-muted); font-size: var(--ffehbo-font-size-meta); }
@layer ffehbo-buttons {
body:not(.wp-admin) :is(form.ffehbo-checkout-layout #order_review .ffehbo-checkout-item-actions, #woofc-area .woofc-item-qty-inner) :is(input.qty, .ff-quantity-control__button) {
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--ffehbo-review-paper) !important;
    box-shadow: none !important;
  }
}
body:not(.wp-admin) #woofc-area .woofc-area-top {
  height: auto;
  line-height: var(--ffehbo-line-height-compact);
  flex-wrap: nowrap;
  gap: 10px;
  
  background: var(--ffehbo-review-ink) !important;
  color: var(--ffehbo-review-paper) !important;
}
body:not(.wp-admin) #woofc-area .woofc-area-heading { color: var(--ffehbo-review-paper) !important; }
body:not(.wp-admin) #woofc-area .woofc-area-top .woofc-area-heading { width: auto; height: auto; flex: 1 1 auto; }
body:not(.wp-admin) #woofc-area .woofc-area-count { background: var(--e-global-color-primary); color: var(--ffehbo-review-ink); border-radius: 50%; flex-shrink: 0; }
body:not(.wp-admin) #woofc-area .woofc-area-count::before,
body:not(.wp-admin) #woofc-area .woofc-area-count::after { content: none; display: none; }
body:not(.wp-admin) #woofc-area .woofc-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
body:not(.wp-admin) #woofc-area .woofc-area-bot .woofc-action { position: sticky; bottom: 0; z-index: 1; background: var(--ffehbo-review-paper); }
body:not(.wp-admin) #woofc-area .woofc-area-top :is(.ffehbo-fly-edit, .woofc-close) {
  --ffehbo-button-min-height: 40px;
  --ffehbo-button-icon-min-width: 40px;
  --ffehbo-button-radius: 50%;
  --ffehbo-button-border: var(--ffehbo-review-paper);
  box-sizing: border-box;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ffehbo-review-paper);
  color: var(--ffehbo-review-ink);
}
body:not(.wp-admin) #woofc-area .ffehbo-fly-edit { margin-left: auto; }
body:not(.wp-admin) #woofc-area .woofc-close:is(:hover, :focus-visible) { background: var(--e-global-color-accent); }
body:not(.wp-admin) #woofc-area .woofc-close::before,
body:not(.wp-admin) #woofc-area .woofc-close::after { content: none; display: none; }
@media (max-width: 360px) {
body:not(.wp-admin) #woofc-area .woofc-area-top { padding-inline: 12px; gap: 8px; }
body:not(.wp-admin) #woofc-area .woofc-area-heading { gap: 8px; }
}
body:not(.wp-admin) #woofc-area .ffehbo-fly-edit > span { width: 16px; height: 16px; background: currentColor; mask: url('../images/icons/edit.svg') center / contain no-repeat; }
body:not(.wp-admin) #woofc-area .ffehbo-fly-tax-note { text-align: right; color: var(--ffehbo-review-muted); font-size: var(--ffehbo-font-size-meta); margin: -2px 0 8px; }
body:not(.wp-admin) #woofc-area .woofc-area-bot:has(.ffehbo-order-delivery--compact) > .woofc-free-shipping-bar { display: none; }
body:not(.wp-admin) #woofc-area .ffehbo-cart-bundle:not(.ffehbo-cart-variation) { background: var(--ffehbo-review-neutral); border-radius: 7px; }
body:not(.wp-admin) #woofc-area .ffehbo-cart-variation { padding: 0; }
body:not(.wp-admin) #woofc-area .ffehbo-cart-variation .ffehbo-cart-bundle__items > li { display: flex; gap: 5px; padding: 2px 0; border: 0; }
body:not(.wp-admin) #woofc-area .ffehbo-cart-variation .ffehbo-cart-bundle__items > li > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body:not(.wp-admin) #woofc-area .ffehbo-cart-variation .ffehbo-cart-bundle__items > li > span:last-child { text-align: left; }
body:not(.wp-admin) #woofc-area .woofc-area-bot .woofc-total { box-sizing: border-box; border-radius: 7px; padding-inline: 12px; }
body:not(.wp-admin) #woofc-area .woofc-area-bot .woofc-total,
body:not(.wp-admin) #woofc-area .woofc-area-bot .woofc-total > * { font-size: var(--ffehbo-font-size-card-price) !important; font-weight: var(--cmsmasters-h4-font-weight, 700); }
body:not(.wp-admin) #woofc-area .woofc-item .ffehbo-fly-item-actions { align-items: center; }
body:not(.wp-admin) #woofc-area .woofc-area-mid .woofc-item .woofc-item-inner .woofc-item-qty .woofc-item-qty-inner:has(input.qty:not([type="hidden"])) {
  --ffehbo-quantity-height: 32px;
  --ffehbo-quantity-button-width: 30px;
  --ffehbo-button-radius: 7px;
  width: 100px;
}
body.woocommerce-checkout:not(.woocommerce-order-received) form.ffehbo-checkout-layout #order_review .ffehbo-checkout-tier,
body:not(.wp-admin) #woofc-area .ffehbo-checkout-tier {
  background: color-mix(in srgb, var(--ffehbo-pill-success-background) 10%, var(--ffehbo-review-paper));
  color: color-mix(in srgb, var(--ffehbo-pill-success-background) 40%, var(--ffehbo-review-ink));
  margin-block: 2px 6px;
}
body.woocommerce-checkout:not(.woocommerce-order-received) form.ffehbo-checkout-layout #order_review .ffehbo-checkout-tier__icon,
body:not(.wp-admin) #woofc-area .ffehbo-checkout-tier__icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url('../images/icons/tag-outline.svg') center / contain no-repeat;
}
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) .ffehbo-review-detail {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 4px 0;
  color: var(--ffehbo-review-muted);
  font-size: var(--ffehbo-font-size-meta) !important;
  font-weight: 400;
  line-height: var(--ffehbo-line-height-body);
  text-align: left;
  overflow-wrap: anywhere;
}
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) .ffehbo-review-detail__icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: currentColor;
  opacity: .65;
  mask: var(--ffehbo-review-detail-icon) center / contain no-repeat;
}
.ffehbo-review-detail--course-type { --ffehbo-review-detail-icon: url('../images/icons/graduation-cap-outline.svg'); }
.ffehbo-review-detail--reservation { --ffehbo-review-detail-icon: url('../images/icons/ticket-outline.svg'); }
.ffehbo-review-detail--date { --ffehbo-review-detail-icon: url('../images/icons/calendar.svg'); }
.ffehbo-review-detail--time { --ffehbo-review-detail-icon: url('../images/icons/clock-outline.svg'); }
.ffehbo-review-detail--location { --ffehbo-review-detail-icon: url('../images/icons/map-pin-outline.svg'); }
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) :is(.ffehbo-checkout-tier, .ffehbo-checkout-tier > span:last-child) {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
body:not(.wp-admin) :is(form.ffehbo-checkout-layout, #woofc-area) .ffehbo-order-tier-unit { display: none; }
body.woocommerce-checkout form.ffehbo-checkout-layout #order_review table.shop_table tfoot .ffehbo-course-reservation-invoice-total > *,
body:not(.wp-admin) #woofc-area .ffehbo-fly-cart-reservation-summary {
  padding: 12px;
  border: 0;
  background: color-mix(in srgb, var(--e-global-color-primary) 15%, var(--ffehbo-review-paper));
  color: var(--ffehbo-review-ink);
  text-align: left;
}
body:not(.wp-admin) #woofc-area .ffehbo-fly-cart-reservation-summary { gap: 12px; border-radius: 9px; }
body:not(.wp-admin) #woofc-area .ffehbo-review-course-data .ffehbo-fly-cart-meta__row {
  display: block;
  padding: 0;
  margin: 0;
}
body:not(.wp-admin) #woofc-area .ffehbo-review-course-data .ffehbo-fly-cart-meta__row::before { content: none; }
body:not(.wp-admin) #woofc-area .ffehbo-review-invoice-info { min-width: 0; }
body:not(.wp-admin) #woofc-area .ffehbo-review-invoice-info summary { cursor: pointer; list-style: none; }
body:not(.wp-admin) #woofc-area .ffehbo-review-invoice-info summary::-webkit-details-marker { display: none; }
body:not(.wp-admin) #woofc-area .ffehbo-review-invoice-info summary > span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--e-global-color-primary);
}
body:not(.wp-admin) #woofc-area .woofc-area-top .woofc-area-heading {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 14px;
  padding-top: 3px;
}
body:not(.wp-admin) #woofc-area .woofc-area-heading::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-right: 4px;
  background: currentColor;
  mask: url('../images/icons/cart.svg') center / contain no-repeat;
}
body:not(.wp-admin) #woofc-area .woofc-area-top .woofc-area-count {
  position: absolute;
  top: -3px;
  left: 17px;
  min-width: 18px;
  width: auto;
  height: 18px;
  padding: 0 4px;
  line-height: 18px;
  font-size: var(--ffehbo-font-size-meta);
  box-sizing: border-box;
}
body:not(.wp-admin) #woofc-area .ffehbo-review-participant-unit {
  min-width: 0;
  margin-right: auto;
  color: var(--ffehbo-review-muted);
  font-size: var(--ffehbo-font-size-meta);
  font-weight: 400;
  line-height: var(--ffehbo-line-height-body);
}
body:not(.wp-admin) #woofc-area .woofc-area-bot :is(.woofc-data, .woofc-subtotal, .woofc-total),
body:not(.wp-admin) #woofc-area .woofc-area-bot :is(.woofc-data, .woofc-subtotal, .woofc-total) :is(span, strong, .amount, bdi) {
  font-family: var(--ffehbo-font-family) !important;
  font-size: var(--ffehbo-font-size-label) !important;
  font-weight: 400 !important;
  line-height: var(--ffehbo-line-height-compact) !important;
}
body:not(.wp-admin) #woofc-area .woofc-area-bot .woofc-total,
body:not(.wp-admin) #woofc-area .woofc-area-bot .woofc-total :is(span, strong, .amount, bdi) {
  font-weight: 700 !important;
}
