/* Sumeria Health trade portal: lines the WordPress/WooCommerce pages up with the main site.
   Loaded last by shop/wp-content/mu-plugins/sumeria-portal-style.php. Uses the tokens from /assets/site.css. */

html{overflow-x:clip}
body{font-family:var(--body)}

/* One container, same edges as the header and footer (1280 wide, 20px gutter) */
.wp-site-blocks{padding:0!important}
.wp-site-blocks>main{max-width:1280px!important;width:100%;margin:0 auto!important;padding:40px 20px 72px!important;box-sizing:border-box}
.wp-site-blocks main .has-global-padding{padding-left:0!important;padding-right:0!important}
.wp-site-blocks main .is-layout-constrained>*{max-width:none!important;margin-left:0!important;margin-right:0!important}
.wp-site-blocks main .alignfull,.wp-site-blocks main .alignwide{margin-left:0!important;margin-right:0!important;max-width:none!important}

/* Page title: same display face and weight as the site headings */
main h1.wp-block-post-title{font-family:var(--display)!important;color:var(--navy)!important;margin:0 0 20px!important;text-align:left!important}

/* The delivery line at the top of the page: a left-aligned note like the rest of the site, not a centred bar */
main .entry-content>p.has-background{text-align:left!important;background:var(--leaf-bg)!important;color:var(--ink)!important;border:0!important;border-left:4px solid var(--green)!important;border-radius:8px!important;padding:14px 18px!important;font-size:15px!important;line-height:1.5!important;margin:0 0 20px!important}
main .entry-content>p.has-background strong{color:var(--navy)}

/* Login and Register: two equal cards */
main .u-columns.col2-set{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
main .u-columns .u-column1,main .u-columns .u-column2{width:auto!important;float:none!important;margin:0!important;grid-row:1}
main .u-columns .u-column1{grid-column:1}
main .u-columns .u-column2{grid-column:2}
main .u-columns h2{margin:0 0 14px!important;font-size:clamp(22px,2.4vw,28px)!important}
@media (max-width:800px){main .u-columns.col2-set{grid-template-columns:1fr}main .u-columns .u-column1,main .u-columns .u-column2{grid-column:1;grid-row:auto}}

/* Buttons and fields use the site's radius instead of pills */
main .wp-element-button,main .woocommerce a.button,main .woocommerce button.button,main .woocommerce input.button,main .wc-block-components-button,main input[type=submit]{border-radius:8px!important;min-height:44px}
main input[type=text],main input[type=email],main input[type=password],main input[type=tel],main input[type=number],main select,main textarea{min-height:44px;border-radius:8px!important;background:#fff!important}
main form .woocommerce-form-row,main form .form-row{margin-bottom:16px}

/* Tables (cart, orders) in the same hairline style as the site */
main table.shop_table{border:1px solid var(--line)!important;border-radius:12px;overflow:hidden;background:#fff}
main table.shop_table th,main table.shop_table td{border-color:var(--line)!important;padding:14px 16px}

/* Narrow screens */
@media (max-width:700px){
  .wp-site-blocks>main{padding:28px 16px 56px!important}
  main form.woocommerce-form-login,main form.woocommerce-form-register,main .woocommerce-cart-form,main .woocommerce-checkout{padding:18px!important}
}
