/* Page-scoped presentation only. Keep native WooCommerce forms, totals and payment widgets. */
body.fs24-shop-ui {
  --fs24-ink: #132c40;
  --fs24-muted: #526577;
  --fs24-line: #dce5ed;
  --fs24-blue: #1767cf;
  --fs24-soft: #f3f7fa;
}
body.fs24-shop-ui #content { background: var(--fs24-soft); }
body.fs24-shop-ui #content > .ast-container { width: 100%; max-width: 1500px; padding: 0 20px; }
body.fs24-shop-ui #primary { width: 100%; margin: 0; padding: 46px 0 64px; border: 0; }
body.fs24-shop-ui .ast-article-single { background: transparent; padding: 0; }
body.fs24-shop-ui .entry-header { margin: 0 0 28px; }
body.fs24-shop-ui .entry-title { color: var(--fs24-ink); font-size: clamp(28px, 3vw, 42px); line-height: 1.16; font-weight: 700; letter-spacing: -.025em; }
body.fs24-shop-ui .entry-content { color: var(--fs24-ink); font-size: 16px; line-height: 1.65; }
body.fs24-shop-ui .entry-content a { text-underline-offset: 3px; }
body.fs24-shop-ui .entry-content :is(button, a, input, select, textarea):focus-visible { outline: 3px solid #1767cf; outline-offset: 3px; }
body.fs24-shop-ui .woocommerce-info,
body.fs24-shop-ui .woocommerce-message,
body.fs24-shop-ui .woocommerce-error { border-radius: 10px; background: #fff; box-shadow: none; }

/* Native Cart Block; product identity, quantities and express buttons stay unchanged. */
body.fs24-shop-ui .entry-content > .wp-block-woocommerce-cart,
body.fs24-shop-ui .entry-content > .woocommerce { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
body.fs24-shop-ui .wc-block-components-sidebar-layout { gap: 28px; align-items: flex-start; }
body.fs24-shop-ui .wc-block-cart__main { flex: 1 1 0; width: auto; min-width: 0; padding: 26px; border: 1px solid var(--fs24-line); border-radius: 18px; background: #fff; }
body.fs24-shop-ui .wc-block-cart__sidebar { flex: 0 0 35%; width: 35%; min-width: 320px; margin: 0; padding: 24px; border: 1px solid var(--fs24-line); border-radius: 18px; background: #fff; }
body.fs24-shop-ui table.wc-block-cart-items { margin: 0; border: 0; }
body.fs24-shop-ui .wc-block-cart-items .wc-block-cart-items__header th { font-size: 12px; letter-spacing: .065em; color: var(--fs24-muted); padding-bottom: 18px; }
body.fs24-shop-ui .wc-block-cart-items .wc-block-cart-item__image { width: 128px; padding: 22px 18px 22px 0; }
body.fs24-shop-ui .wc-block-cart-item__image img { width: 110px; height: 128px; object-fit: contain; border-radius: 10px; background: #f6f8fa; }
body.fs24-shop-ui .wc-block-cart-item__product { min-width: 0; padding-top: 22px; padding-bottom: 22px; }
body.fs24-shop-ui table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name { font-size: 18px; font-weight: 650; line-height: 1.35; color: var(--fs24-ink); text-decoration: none; }
body.fs24-shop-ui .wc-block-components-product-metadata { font-size: 13px; line-height: 1.6; color: var(--fs24-muted); overflow-wrap: anywhere; }
body.fs24-shop-ui .wc-block-components-product-metadata__description { margin-top: 8px; }
/* Separate native options and delivery/software information instead of a slash-separated paragraph. */
body.fs24-shop-ui .wc-block-components-product-metadata .wc-block-components-product-details > span { display: block; margin-bottom: 7px; }
body.fs24-shop-ui .wc-block-components-product-details > span > span[aria-hidden="true"] { display: none; }
body.fs24-shop-ui .wc-block-components-product-details__name { font-weight: 650; color: var(--fs24-ink); }
body.fs24-shop-ui .wc-block-components-product-details__value { white-space: pre-line; }
body.fs24-shop-ui .wc-block-components-product-details__studio-software-inklusive > .wc-block-components-product-details__value { display: block; }
body.fs24-shop-ui .wc-block-components-quantity-selector { border: 1px solid var(--fs24-line); border-radius: 8px; }
body.fs24-shop-ui .wc-block-cart__totals-title { font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--fs24-ink); }
body.fs24-shop-ui .wc-block-components-totals-footer-item { padding-top: 20px; padding-bottom: 20px; }
body.fs24-shop-ui .wc-block-cart__submit-button { min-height: 52px; border: 0; border-radius: 10px; background: var(--fs24-blue); color: #fff; font-weight: 650; text-decoration: none; }
body.fs24-shop-ui .wc-block-cart__submit-button:hover { background: #1054ae; color: #fff; }
body.fs24-shop-ui .wp-block-woocommerce-empty-cart-block { background: #fff; border: 1px solid var(--fs24-line); border-radius: 18px; padding: 32px; }

/* Classic checkout: preserve its established two-column structure and AJAX targets. */
body.fs24-shop-ui form.checkout { margin-top: 24px; }
body.fs24-shop-ui .woocommerce-checkout #customer_details { padding: 28px; border: 1px solid var(--fs24-line); border-radius: 18px; background: #fff; }
body.fs24-shop-ui .woocommerce-checkout #order_review_heading { margin-top: 0; padding: 25px 26px 18px; border: 1px solid var(--fs24-line); border-bottom: 0; border-radius: 18px 18px 0 0; background: #fff; }
body.fs24-shop-ui .woocommerce-checkout #order_review { padding: 0 26px 26px; border: 1px solid var(--fs24-line); border-top: 0; border-radius: 0 0 18px 18px; background: #fff; }
body.fs24-shop-ui .woocommerce :is(h2,h3) { color: var(--fs24-ink); }
body.fs24-shop-ui .woocommerce .form-row { margin-bottom: 15px; }
body.fs24-shop-ui .woocommerce .form-row label { line-height: 1.45; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
body.fs24-shop-ui .woocommerce .form-row :is(input.input-text,textarea,select) { font: inherit; font-size: 16px; line-height: 1.5; min-height: 46px; border: 1px solid #c9d6e2; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--fs24-ink); }
body.fs24-shop-ui .woocommerce .form-row textarea { min-height: 112px; }
body.fs24-shop-ui .select2-container .select2-selection--single { min-height: 46px; height: auto; border: 1px solid #c9d6e2; border-radius: 8px; background: #fff; }
body.fs24-shop-ui .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 12px; padding-right: 34px; color: var(--fs24-ink); }
body.fs24-shop-ui .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
body.fs24-shop-ui .woocommerce .woocommerce-invalid :is(input.input-text,textarea,select),
body.fs24-shop-ui .woocommerce .woocommerce-invalid .select2-selection { border-color: #bd2929; }
body.fs24-shop-ui #order_review table.shop_table { font-size: 14px; table-layout: auto; width: 100%; border: 0; margin: 0 0 18px; }
body.fs24-shop-ui #order_review table.shop_table th,
body.fs24-shop-ui #order_review table.shop_table td { padding: 14px 8px; vertical-align: top; border-color: var(--fs24-line); }
body.fs24-shop-ui #order_review .product-name { overflow-wrap: anywhere; }
body.fs24-shop-ui #order_review .product-total,
body.fs24-shop-ui #order_review .order-total .amount { white-space: nowrap; }
body.fs24-shop-ui #order_review dl.variation { margin-top: 10px; color: var(--fs24-muted); font-size: 12px; line-height: 1.55; }
body.fs24-shop-ui #order_review dl.variation p { margin-bottom: 5px; }
body.fs24-shop-ui #order_review dl.variation { display: block; }
body.fs24-shop-ui #order_review dl.variation dt,
body.fs24-shop-ui #order_review dl.variation dd { float: none; display: block; margin: 0; padding: 0; white-space: normal; }
body.fs24-shop-ui #order_review dl.variation dt { font-weight: 650; color: var(--fs24-ink); }
body.fs24-shop-ui #order_review dl.variation dd { margin: 1px 0 9px; }
body.fs24-shop-ui #order_review .order-total { font-size: 17px; color: var(--fs24-ink); }
body.fs24-shop-ui #payment { background: transparent; border-radius: 12px; }
body.fs24-shop-ui #payment ul.payment_methods { padding: 14px 0; border-color: var(--fs24-line); }
body.fs24-shop-ui #payment ul.payment_methods > li { padding: 9px 0; }
body.fs24-shop-ui #payment .payment_box { border-radius: 8px; }
body.fs24-shop-ui #payment .place-order { padding: 16px 0 0; }
body.fs24-shop-ui #place_order { width: 100%; min-height: 52px; padding: 14px 18px; border: 0; border-radius: 10px; font-size: 16px; font-weight: 650; background: var(--fs24-blue); color: #fff; }
body.fs24-shop-ui #place_order:hover { background: #1054ae; }
body.fs24-shop-ui .woocommerce-terms-and-conditions-wrapper { font-size: 13px; line-height: 1.55; margin-bottom: 16px; }

/* Existing account functionality: visual grouping only, no auth/order ownership changes. */
body.fs24-shop-ui .woocommerce-MyAccount-navigation { background: #fff; border: 1px solid var(--fs24-line); border-radius: 16px; overflow: hidden; }
body.fs24-shop-ui .woocommerce-MyAccount-navigation ul { margin: 0; padding: 8px; list-style: none; }
body.fs24-shop-ui .woocommerce-MyAccount-navigation ul li { border: 0; margin: 0; }
body.fs24-shop-ui .woocommerce-MyAccount-navigation ul li a { display: block; border-radius: 9px; padding: 12px 16px; color: var(--fs24-ink); text-decoration: none; }
body.fs24-shop-ui .woocommerce-MyAccount-navigation ul li.is-active a { background: var(--fs24-ink); color: #fff; }
body.fs24-shop-ui .woocommerce-MyAccount-navigation ul li:not(.is-active) a:hover { background: #eef4fa; }
body.fs24-shop-ui .woocommerce-MyAccount-content { min-width: 0; background: #fff; border: 1px solid var(--fs24-line); border-radius: 16px; padding: 28px; overflow-wrap: anywhere; }
body.fs24-shop-ui .woocommerce form.login,
body.fs24-shop-ui .woocommerce form.register,
body.fs24-shop-ui .woocommerce form.lost_reset_password { background: #fff; border: 1px solid var(--fs24-line); border-radius: 16px; padding: 28px; }
body.fs24-shop-ui .woocommerce-MyAccount-content .shop_table { font-size: 14px; }

@media (max-width: 1000px) {
  body.fs24-shop-ui .wc-block-components-sidebar-layout { gap: 20px; }
  body.fs24-shop-ui .wc-block-cart__main,
  body.fs24-shop-ui .wc-block-cart__sidebar { padding: 18px; }
  body.fs24-shop-ui .wc-block-cart__sidebar { flex-basis: 36%; min-width: 290px; }
  body.fs24-shop-ui .woocommerce-checkout #customer_details { padding: 20px; }
  body.fs24-shop-ui .woocommerce-checkout #order_review_heading { padding: 20px 18px 14px; }
  body.fs24-shop-ui .woocommerce-checkout #order_review { padding: 0 18px 20px; }
}
@media (max-width: 781px) {
  body.fs24-shop-ui #content > .ast-container { padding: 0 16px; }
  body.fs24-shop-ui #primary { padding: 28px 0 40px; }
  body.fs24-shop-ui .entry-header { margin-bottom: 20px; }
  body.fs24-shop-ui .wc-block-components-sidebar-layout { display: block; }
  body.fs24-shop-ui .wc-block-cart__main,
  body.fs24-shop-ui .wc-block-cart__sidebar { width: 100%; min-width: 0; margin: 0 0 20px; padding: 16px; border-radius: 14px; }
  body.fs24-shop-ui .wc-block-cart-items .wc-block-cart-item__image { width: 88px; padding-right: 12px; }
  body.fs24-shop-ui .wc-block-cart-item__image img { width: 76px; height: 102px; }
  body.fs24-shop-ui table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name { font-size: 16px; }
  body.fs24-shop-ui .wc-block-components-product-metadata { font-size: 12px; }
  body.fs24-shop-ui .woocommerce-checkout #customer_details,
  body.fs24-shop-ui .woocommerce-checkout #order_review_heading,
  body.fs24-shop-ui .woocommerce-checkout #order_review { width: 100%; float: none; margin-left: 0; margin-right: 0; }
  body.fs24-shop-ui .woocommerce-checkout #customer_details { margin-bottom: 24px; padding: 18px; border-radius: 14px; }
  body.fs24-shop-ui #order_review table.shop_table td,
  body.fs24-shop-ui #order_review table.shop_table th { padding: 12px 4px; }
  body.fs24-shop-ui #order_review .order-total { font-size: 16px; }
  body.fs24-shop-ui .woocommerce-MyAccount-navigation,
  body.fs24-shop-ui .woocommerce-MyAccount-content { width: 100%; float: none; margin-bottom: 20px; }
  body.fs24-shop-ui .woocommerce-MyAccount-content { padding: 18px; }
}
@media (max-width: 420px) {
  body.fs24-shop-ui .woocommerce form .form-row-first,
  body.fs24-shop-ui .woocommerce form .form-row-last { width: 100%; float: none; }
  body.fs24-shop-ui .wp-block-woocommerce-empty-cart-block { padding: 18px; }
}
