/*
 * B2BPerfume Pro 2.1 — authoritative commerce layout layer.
 *
 * Purpose:
 * 1. Keep the header/navigation visually and responsively aligned with IBALG.
 * 2. Keep cart, checkout, account and catalogue layouts compatible with WooCommerce.
 * 3. Give WooCommerce Cart/Checkout Blocks stable, readable two-column layouts.
 *
 * This file intentionally loads after style.css and the Customizer CSS variables.
 */

/* ========================================================================== 
   IBALG-parity header / navigation
   ========================================================================== */
html {
  scroll-padding-top: 118px;
}

[id] {
  scroll-margin-top: 118px;
}











.b2bp-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.b2bp-custom-logo {
  width: auto;
  max-width: min(220px, 32vw);
  max-height: 38px;
  object-fit: contain;
}







































/* Content never visually runs underneath the sticky floating header. */
.b2bp-main,
.b2bp-commerce-main,
.b2bp-page-wrap {
  position: relative;
  z-index: 0;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 96px;
  }
  [id] {
    scroll-margin-top: 96px;
  }

  

  

  

  .b2bp-custom-logo {
    max-width: min(210px, calc(100vw - 96px));
    max-height: 38px;
  }

  

  

  

  

  
  
  
  
  
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
}



@media (max-width: 680px) {
  

  

  .b2bp-custom-logo {
    max-width: 155px;
    max-height: 34px;
  }

  

  

  

  

  
}

@media (max-width: 420px) {
  .b2bp-shell {
    width: min(calc(100% - 20px), var(--b2bp-shell));
  }

  
}

/* ========================================================================== 
   Single product — open, aligned, line-based layout
   ========================================================================== */




























































































/* ========================================================================== 
   Cart / Checkout utility pages
   ========================================================================== */
.woocommerce-cart .b2bp-page-wrap--commerce,
.woocommerce-checkout .b2bp-page-wrap--commerce,
.woocommerce-account .b2bp-page-wrap--commerce {
  padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 8vw, 100px) !important;
}

.woocommerce-cart .b2bp-commerce-page,
.woocommerce-checkout .b2bp-commerce-page,
.woocommerce-account .b2bp-commerce-page {
  width: 100%;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.woocommerce-cart .b2bp-entry-content,
.woocommerce-checkout .b2bp-entry-content,
.woocommerce-account .b2bp-entry-content {
  width: 100%;
  max-width: none !important;
}

.woocommerce-cart .b2bp-entry-content > *,
.woocommerce-checkout .b2bp-entry-content > * {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* WooCommerce Cart/Checkout Blocks: enforce the intended main + sidebar grid. */
.woocommerce-cart .wc-block-cart,
.woocommerce-checkout .wc-block-checkout,
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.woocommerce-cart .wc-block-components-sidebar-layout,
.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .78fr) !important;
  gap: clamp(22px, 3vw, 34px) !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
.woocommerce-cart .wc-block-cart__main,
.woocommerce-checkout .wc-block-checkout__main {
  grid-column: 1;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 34px) !important;
  background: var(--b2bp-surface) !important;
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent) !important;
  border-radius: var(--b2bp-radius-lg) !important;
  box-shadow: none !important;
}

.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
.woocommerce-cart .wc-block-cart__sidebar,
.woocommerce-checkout .wc-block-checkout__sidebar {
  grid-column: 2;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: clamp(22px, 2.6vw, 30px) !important;
  background: var(--b2bp-surface) !important;
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent) !important;
  border-radius: var(--b2bp-radius-lg) !important;
  box-shadow: none !important;
  align-self: start !important;
}

.woocommerce-cart .wc-block-cart__sidebar,
.woocommerce-checkout .wc-block-checkout__sidebar {
  position: sticky;
  top: 118px;
}

/* Remove nested card-within-card effects from Woo Blocks. */
.woocommerce-cart .wc-block-components-totals-wrapper,
.woocommerce-checkout .wc-block-components-totals-wrapper,
.woocommerce-checkout .wc-block-components-order-summary,
.woocommerce-checkout .wc-block-components-address-card,
.woocommerce-checkout .wc-block-components-checkout-step,
.woocommerce-cart .wc-block-cart-items,
.woocommerce-cart .wc-block-cart-items__row {
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce-checkout .wc-block-components-checkout-step,
.woocommerce-checkout .wc-block-components-order-summary,
.woocommerce-cart .wc-block-components-totals-wrapper {
  border-color: color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
}

.woocommerce-checkout .wc-block-components-checkout-step {
  padding-bottom: 24px !important;
  margin-bottom: 24px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
}

.woocommerce-checkout .wc-block-components-checkout-step:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

.woocommerce-checkout .wc-block-components-checkout-step__heading,
.woocommerce-cart .wc-block-components-title {
  margin-bottom: 18px !important;
}

.woocommerce-checkout .wc-block-components-title,
.woocommerce-cart .wc-block-components-title,
.woocommerce-checkout .wc-block-components-checkout-step__title {
  color: var(--b2bp-text) !important;
  font-family: var(--b2bp-font-heading) !important;
  font-weight: var(--b2bp-heading-weight) !important;
}

.woocommerce-cart .wc-block-cart-items,
.woocommerce-cart .wc-block-cart-items td,
.woocommerce-cart .wc-block-cart-items th {
  border-color: color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
}

.woocommerce-cart .wc-block-cart-item__image img {
  width: 88px !important;
  max-width: 88px !important;
  height: 88px !important;
  object-fit: contain;
  border-radius: 0 !important;
}

.woocommerce-cart .wc-block-cart-item__product {
  min-width: 0;
}

.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
  font-weight: 700;
}

.woocommerce-cart .wc-block-cart__submit-container,
.woocommerce-checkout .wc-block-checkout__actions_row {
  margin-top: 18px !important;
}

.woocommerce-cart .wc-block-cart__submit-button,
.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  width: 100% !important;
  min-height: var(--b2bp-button-height) !important;
}

/* Inputs / selects use one calm form language. */
.woocommerce-cart input,
.woocommerce-cart select,
.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-checkout .wc-block-components-text-input input,
.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input,
.woocommerce-checkout .select2-selection {
  border-color: color-mix(in srgb, var(--b2bp-primary) 18%, transparent) !important;
  border-radius: var(--b2bp-input-radius) !important;
  background: var(--b2bp-surface) !important;
  box-shadow: none !important;
}

.woocommerce-checkout .wc-block-components-notice-banner,
.woocommerce-cart .wc-block-components-notice-banner {
  border-radius: var(--b2bp-radius-md) !important;
  box-shadow: none !important;
}

/* Classic cart fallback. */
.woocommerce-cart form.woocommerce-cart-form {
  float: left;
  width: calc(68% - 14px);
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--b2bp-surface);
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent);
  border-radius: var(--b2bp-radius-lg);
}

.woocommerce-cart .cart-collaterals {
  float: right;
  width: calc(32% - 14px);
  margin: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  padding: clamp(22px, 2.6vw, 30px) !important;
  background: var(--b2bp-surface) !important;
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent) !important;
  border-radius: var(--b2bp-radius-lg) !important;
  box-shadow: none !important;
}

.woocommerce-cart .woocommerce::after {
  content: "";
  display: table;
  clear: both;
}

/* Classic checkout fallback. */
.woocommerce-checkout form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .78fr);
  grid-template-areas:
    "customer heading"
    "customer review";
  gap: 0 clamp(22px, 3vw, 34px);
  align-items: start;
}

.woocommerce-checkout form.checkout .col2-set {
  grid-area: customer;
  width: 100% !important;
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--b2bp-surface);
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent);
  border-radius: var(--b2bp-radius-lg);
}

.woocommerce-checkout #order_review_heading {
  grid-area: heading;
  margin: 0 !important;
  padding: 0 0 14px;
}

.woocommerce-checkout #order_review {
  grid-area: review;
  width: 100% !important;
  margin: 0;
  padding: clamp(22px, 2.6vw, 30px) !important;
  background: var(--b2bp-surface) !important;
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent) !important;
  border-radius: var(--b2bp-radius-lg) !important;
  box-shadow: none !important;
}

.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  padding: 18px 0 !important;
  border-bottom-color: color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
}

@media (max-width: 980px) {
  .woocommerce-cart .wc-block-components-sidebar-layout,
  .woocommerce-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
  .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  .woocommerce-cart .wc-block-cart__main,
  .woocommerce-checkout .wc-block-checkout__main,
  .woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .woocommerce-cart .wc-block-cart__sidebar,
  .woocommerce-checkout .wc-block-checkout__sidebar {
    grid-column: 1;
  }

  .woocommerce-cart .wc-block-cart__sidebar,
  .woocommerce-checkout .wc-block-checkout__sidebar {
    position: static;
  }

  .woocommerce-cart form.woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals {
    float: none;
    width: 100%;
  }

  .woocommerce-cart .cart-collaterals {
    margin-top: 22px;
  }

  .woocommerce-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "customer"
      "heading"
      "review";
    row-gap: 22px;
  }
}

@media (max-width: 680px) {
  .woocommerce-cart .b2bp-page-wrap--commerce > .b2bp-shell,
  .woocommerce-checkout .b2bp-page-wrap--commerce > .b2bp-shell,
  .woocommerce-account .b2bp-page-wrap--commerce > .b2bp-shell {
    width: min(calc(100% - 24px), var(--b2bp-shell));
  }

  .woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
  .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  .woocommerce-cart .wc-block-cart__main,
  .woocommerce-checkout .wc-block-checkout__main,
  .woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .woocommerce-cart .wc-block-cart__sidebar,
  .woocommerce-checkout .wc-block-checkout__sidebar,
  .woocommerce-cart form.woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-checkout form.checkout .col2-set,
  .woocommerce-checkout #order_review {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .woocommerce-cart .wc-block-cart-item__image img {
    width: 68px !important;
    max-width: 68px !important;
    height: 68px !important;
  }
}

/* Preserve the Pro Customizer's stacked-tabs option. */



/* v2.1.2 — one width system for every WooCommerce utility page.
   Cart, Checkout and My Account all use the global theme container width.
   There are no page-specific max-width tokens anymore, so the Customizer's
   Global Layout > Container width is the single source of truth. */
.b2bp-page-wrap--commerce > .b2bp-shell,
.b2bp-cart-main > .b2bp-shell,
.b2bp-checkout-main > .b2bp-shell,
.b2bp-account-main > .b2bp-shell {
  width: min(calc(100% - 40px), var(--b2bp-shell)) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.woocommerce-account .b2bp-entry-content,
.woocommerce-account .b2bp-entry-content > .woocommerce,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  max-width: none;
}

@media (max-width: 680px) {
  .b2bp-page-wrap--commerce > .b2bp-shell,
  .b2bp-cart-main > .b2bp-shell,
  .b2bp-checkout-main > .b2bp-shell,
  .b2bp-account-main > .b2bp-shell {
    width: min(calc(100% - 24px), var(--b2bp-shell)) !important;
  }
}

/* Minimal Cart/Checkout mode keeps the same grid but replaces panels with lines. */
body.b2bp-checkout-minimal.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
body.b2bp-checkout-minimal.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
body.b2bp-checkout-minimal.woocommerce-cart .wc-block-cart__main,
body.b2bp-checkout-minimal.woocommerce-checkout .wc-block-checkout__main,
body.b2bp-checkout-minimal.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.b2bp-checkout-minimal.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.b2bp-checkout-minimal.woocommerce-cart .wc-block-cart__sidebar,
body.b2bp-checkout-minimal.woocommerce-checkout .wc-block-checkout__sidebar,
body.b2bp-checkout-minimal.woocommerce-cart form.woocommerce-cart-form,
body.b2bp-checkout-minimal.woocommerce-cart .cart-collaterals .cart_totals,
body.b2bp-checkout-minimal.woocommerce-checkout form.checkout .col2-set,
body.b2bp-checkout-minimal.woocommerce-checkout #order_review {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.b2bp-checkout-minimal.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.b2bp-checkout-minimal.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.b2bp-checkout-minimal.woocommerce-cart .wc-block-cart__sidebar,
body.b2bp-checkout-minimal.woocommerce-checkout .wc-block-checkout__sidebar,
body.b2bp-checkout-minimal.woocommerce-cart .cart-collaterals .cart_totals,
body.b2bp-checkout-minimal.woocommerce-checkout #order_review {
  border-left: 1px solid color-mix(in srgb, var(--b2bp-primary) 16%, transparent) !important;
  padding-left: clamp(24px, 3vw, 34px) !important;
}

@media (max-width: 980px) {
  

  

  body.b2bp-checkout-minimal.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.b2bp-checkout-minimal.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.b2bp-checkout-minimal.woocommerce-cart .wc-block-cart__sidebar,
  body.b2bp-checkout-minimal.woocommerce-checkout .wc-block-checkout__sidebar,
  body.b2bp-checkout-minimal.woocommerce-cart .cart-collaterals .cart_totals,
  body.b2bp-checkout-minimal.woocommerce-checkout #order_review {
    border-left: 0 !important;
    border-top: 1px solid color-mix(in srgb, var(--b2bp-primary) 16%, transparent) !important;
    padding-left: 0 !important;
    padding-top: 24px !important;
  }
}


/* ========================================================================== 
   v2.1.4 — My Account single-surface system
   My Account uses one visual card only: .b2bp-entry-content. Login, register,
   navigation, forms and account content stay visually flat inside that one
   surface so there are no nested cards.
   ========================================================================== */
.woocommerce-account .b2bp-entry-content {
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: clamp(28px, 4vw, 48px) !important;
  background: var(--b2bp-surface) !important;
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent) !important;
  border-radius: var(--b2bp-radius-lg) !important;
  box-shadow: 0 14px 42px color-mix(in srgb, var(--b2bp-primary) 7%, transparent) !important;
}

.woocommerce-account .b2bp-entry-content > .woocommerce {
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Authentication layout: columns are layout-only, never separate cards. */
.woocommerce-account #customer_login {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
}

.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after {
  display: none !important;
  content: none !important;
}

.woocommerce-account #customer_login > .u-column1,
.woocommerce-account #customer_login > .u-column2,
.woocommerce-account #customer_login > .col-1,
.woocommerce-account #customer_login > .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.woocommerce-account #customer_login > :only-child {
  grid-column: 1 / -1;
  width: min(100%, 620px) !important;
  justify-self: center;
}

.woocommerce-account #customer_login h2,
.woocommerce-account .b2bp-entry-content > .woocommerce > h2 {
  margin: 0 0 clamp(20px, 2.6vw, 28px);
  color: var(--b2bp-text);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

/* Forms themselves remain flat inside the one account surface. */
.woocommerce-account #customer_login form.login,
.woocommerce-account #customer_login form.register,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register,
.woocommerce-account .woocommerce > .woocommerce-ResetPassword,
.woocommerce-account .woocommerce > form.woocommerce-EditAccountForm,
.woocommerce-account .woocommerce > form.woocommerce-address-fields,
.woocommerce-account .woocommerce-MyAccount-content > form {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.woocommerce-account #customer_login .form-row,
.woocommerce-account .woocommerce-form-login .form-row,
.woocommerce-account .woocommerce-form-register .form-row {
  margin: 0 0 16px !important;
}

.woocommerce-account #customer_login label,
.woocommerce-account .woocommerce-form-login label,
.woocommerce-account .woocommerce-form-register label {
  display: block;
  margin: 0 0 7px;
  color: var(--b2bp-text);
  font-size: 12px;
  font-weight: 650;
}

.woocommerce-account #customer_login input.input-text,
.woocommerce-account .woocommerce-form-login input.input-text,
.woocommerce-account .woocommerce-form-register input.input-text,
.woocommerce-account .woocommerce-ResetPassword input.input-text,
.woocommerce-account .woocommerce-EditAccountForm input.input-text,
.woocommerce-account .woocommerce-address-fields input.input-text,
.woocommerce-account .woocommerce-address-fields select {
  width: 100%;
  min-height: var(--b2bp-input-height);
  padding: 0 14px;
  background: var(--b2bp-page);
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 16%, transparent);
  border-radius: var(--b2bp-input-radius);
  color: var(--b2bp-text);
  box-shadow: none;
}

.woocommerce-account #customer_login input.input-text:focus,
.woocommerce-account .woocommerce-form-login input.input-text:focus,
.woocommerce-account .woocommerce-form-register input.input-text:focus,
.woocommerce-account .woocommerce-ResetPassword input.input-text:focus,
.woocommerce-account .woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-account .woocommerce-address-fields input.input-text:focus,
.woocommerce-account .woocommerce-address-fields select:focus {
  outline: 2px solid color-mix(in srgb, var(--b2bp-primary) 18%, transparent);
  outline-offset: 1px;
  border-color: var(--b2bp-primary);
}

.woocommerce-account #customer_login .woocommerce-form-login__submit,
.woocommerce-account #customer_login .woocommerce-form-register__submit,
.woocommerce-account .woocommerce-ResetPassword .button,
.woocommerce-account .woocommerce-EditAccountForm .button,
.woocommerce-account .woocommerce-address-fields .button {
  min-height: var(--b2bp-button-height);
  padding-inline: 22px !important;
  border-radius: var(--b2bp-button-radius) !important;
}

.woocommerce-account #customer_login .lost_password {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent);
}

/* Logged-in account: one shared card with a simple divider, not two cards. */
.woocommerce-account .b2bp-entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: minmax(190px, 24%) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  padding: 0 clamp(24px, 3vw, 34px) 0 0 !important;
  border-right: 1px solid color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  padding: 0 0 0 clamp(24px, 3vw, 34px) !important;
}

.woocommerce-account .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }

@media (max-width: 780px) {
  .woocommerce-account .b2bp-entry-content {
    padding: 24px !important;
  }

  .woocommerce-account #customer_login {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .woocommerce-account #customer_login > :only-child {
    grid-column: auto;
    width: 100% !important;
  }

  .woocommerce-account .b2bp-entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 0 0 22px !important;
    border-right: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 22px 0 0 !important;
  }
}



/* ========================================================================== 
   v2.1.5 — My Account alignment rebuild
   The account area keeps one outer surface only. Logged-in account pages use
   a deterministic sidebar/content grid and B2B custom fields inherit the
   theme's form system instead of relying on snippet CSS.
   ========================================================================== */

/* Do not depend on :has() for the signed-in account layout. WordPress adds the
   logged-in body class, which gives us a predictable selector on all account
   endpoints. */
body.logged-in.woocommerce-account .b2bp-entry-content > .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: start !important;
  width: 100% !important;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
  grid-column: 1 !important;
  align-self: start !important;
  padding: 0 clamp(22px, 2.5vw, 32px) 0 0 !important;
  border-right: 1px solid color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
  grid-column: 2 !important;
  
  padding: 0 0 0 clamp(28px, 3.2vw, 42px) !important;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation li {
  width: 100% !important;
  margin: 0 !important;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 44px;
  padding: 0 14px !important;
  border-radius: 12px;
  color: var(--b2bp-text);
  font-size: 13px;
  font-weight: var(--b2bp-ui-weight);
  text-decoration: none !important;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  background: var(--b2bp-surface-alt);
  color: var(--b2bp-primary);
}

/* Edit Account: full-width form canvas. */
body.logged-in.woocommerce-account .woocommerce-EditAccountForm {
  width: 100% !important;
  max-width: none !important;
}

body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .form-row,
body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .woocommerce-form-row,
body.logged-in.woocommerce-account .woocommerce-EditAccountForm fieldset,
body.logged-in.woocommerce-account .woocommerce-EditAccountForm .b2b-account-section {
  box-sizing: border-box;
}

/* B2B Company Details / Primary Contact are sections, not nested cards. */
body.logged-in.woocommerce-account .b2b-account-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 clamp(28px, 3vw, 36px) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.logged-in.woocommerce-account .b2b-account-section + .b2b-account-section,
body.logged-in.woocommerce-account .b2b-account-section + fieldset,
body.logged-in.woocommerce-account fieldset + .b2b-account-section {
  margin-top: clamp(28px, 3vw, 38px) !important;
}

body.logged-in.woocommerce-account .b2b-account-section--company {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: clamp(18px, 2vw, 26px) !important;
  row-gap: 18px !important;
}

body.logged-in.woocommerce-account .b2b-account-section--company > h3,
body.logged-in.woocommerce-account .b2b-account-section--company > .b2b-account-section__notice {
  grid-column: 1 / -1 !important;
}

body.logged-in.woocommerce-account .b2b-account-section h3 {
  margin: 0 !important;
  color: var(--b2bp-text);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

body.logged-in.woocommerce-account .b2b-account-section__notice {
  max-width: 720px;
  margin: -4px 0 4px !important;
  color: var(--b2bp-muted);
  font-size: 14px;
  line-height: 1.65;
}

body.logged-in.woocommerce-account .b2b-account-section .form-row {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Native fields and fields coming from B2B snippets always use the available
   content width. */
body.logged-in.woocommerce-account .woocommerce-MyAccount-content input.input-text,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
body.logged-in.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
body.logged-in.woocommerce-account .woocommerce-MyAccount-content input[type="url"],
body.logged-in.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
body.logged-in.woocommerce-account .woocommerce-MyAccount-content select,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content textarea {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content input[readonly] {
  background: var(--b2bp-surface-alt) !important;
  color: var(--b2bp-muted) !important;
  cursor: not-allowed;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content label {
  display: block;
  margin: 0 0 7px;
  color: var(--b2bp-text);
  font-size: 12px;
  font-weight: var(--b2bp-ui-weight);
}

/* Native WooCommerce account fields: make first/last name a clean pair and
   keep all wide rows full width. */
body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .form-row-first,
body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .form-row-last {
  float: none !important;
  width: calc(50% - 9px) !important;
  display: inline-block !important;
  vertical-align: top;
}

body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .form-row-first {
  margin-right: 14px !important;
}

body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .form-row-wide {
  float: none !important;
  clear: both !important;
  width: 100% !important;
}

/* Password block remains flat and receives a clean section divider. */
body.logged-in.woocommerce-account .woocommerce-EditAccountForm > fieldset {
  clear: both;
  width: 100% !important;
  margin: clamp(30px, 3vw, 40px) 0 0 !important;
  padding: clamp(26px, 3vw, 34px) 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
  border-radius: 0 !important;
}

body.logged-in.woocommerce-account .woocommerce-EditAccountForm > fieldset legend {
  margin: 0 0 20px;
  padding: 0;
  color: var(--b2bp-text);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: var(--b2bp-heading-weight);
}

body.logged-in.woocommerce-account .woocommerce-EditAccountForm > fieldset .form-row {
  width: 100% !important;
  margin: 0 0 16px !important;
}

body.logged-in.woocommerce-account .woocommerce-EditAccountForm button[name="save_account_details"] {
  margin-top: 26px !important;
}

/* Addresses / Orders / Downloads use the full content column too. */
body.logged-in.woocommerce-account .woocommerce-Addresses,
body.logged-in.woocommerce-account .woocommerce-orders-table,
body.logged-in.woocommerce-account .woocommerce-table,
body.logged-in.woocommerce-account .woocommerce-address-fields,
body.logged-in.woocommerce-account .woocommerce-customer-details {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 980px) {
  body.logged-in.woocommerce-account .b2bp-entry-content > .woocommerce {
    grid-template-columns: 1fr !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
    grid-column: 1 !important;
    padding: 0 0 20px !important;
    border-right: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 1 !important;
    padding: 24px 0 0 !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    padding-bottom: 4px !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
    width: auto !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a {
    width: auto !important;
    white-space: nowrap;
    border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent);
  }
}

@media (max-width: 680px) {
  .woocommerce-account .b2bp-entry-content {
    padding: 22px !important;
  }

  body.logged-in.woocommerce-account .b2b-account-section--company {
    grid-template-columns: 1fr !important;
    row-gap: 16px !important;
  }

  body.logged-in.woocommerce-account .b2b-account-section--company > h3,
  body.logged-in.woocommerce-account .b2b-account-section--company > .b2b-account-section__notice {
    grid-column: auto !important;
  }

  body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .form-row-first,
  body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .form-row-last {
    display: block !important;
    width: 100% !important;
    margin-right: 0 !important;
  }
}


/* ========================================================================== 
   v2.1.6 — B2B registration prompt inside the My Account login surface
   The outer .b2bp-entry-content remains the primary account card. The
   registration prompt is intentionally a smaller framed panel inside it so
   login and registration actions are visually separated without inline CSS.
   ========================================================================== */
.woocommerce-account .b2b-register-notice {
  width: 100%;
  margin: 0 0 clamp(24px, 3vw, 32px);
  padding: clamp(18px, 2.2vw, 24px);
  background: color-mix(in srgb, var(--b2bp-page) 72%, var(--b2bp-surface));
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 14%, transparent);
  border-radius: var(--b2bp-radius-md);
  box-shadow: none;
}

.woocommerce-account .b2b-register-notice h3 {
  margin: 0 0 8px;
  color: var(--b2bp-text);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.woocommerce-account .b2b-register-notice p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--b2bp-muted);
  line-height: 1.6;
}

.woocommerce-account .b2b-register-notice .button {
  margin: 0 !important;
}

/* Keep the first login field visually separated from the registration panel. */
.woocommerce-account .b2b-register-notice + .form-row,
.woocommerce-account .b2b-register-notice + p.form-row {
  margin-top: 0 !important;
}

@media (max-width: 680px) {
  .woocommerce-account .b2b-register-notice {
    margin-bottom: 22px;
    padding: 18px;
    border-radius: var(--b2bp-radius-sm);
  }

  .woocommerce-account .b2b-register-notice .button {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   v2.1.7 — Login prompt inside the dedicated B2B registration page
   B2B-2 outputs .b2b-login-notice. Keep presentation in the theme and mirror
   the framed register prompt used on My Account, with clear spacing before
   the Company Details fields.
   ========================================================================== */
.b2b-custom-registration-page .b2b-login-notice {
  width: 100%;
  margin: 0 0 clamp(28px, 3.2vw, 36px);
  padding: clamp(18px, 2.2vw, 24px);
  background: color-mix(in srgb, var(--b2bp-page) 72%, var(--b2bp-surface));
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 14%, transparent);
  border-radius: var(--b2bp-radius-md);
  box-shadow: none;
}

.b2b-custom-registration-page .b2b-login-notice h3 {
  margin: 0 0 8px;
  color: var(--b2bp-text);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.b2b-custom-registration-page .b2b-login-notice p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--b2bp-muted);
  line-height: 1.6;
}

.b2b-custom-registration-page .b2b-login-notice .button {
  margin: 0 !important;
}

/* The first business-details group should start cleanly after the prompt. */
.b2b-custom-registration-page .b2b-login-notice + .b2b-register-section {
  margin-top: 0;
}

@media (max-width: 680px) {
  .b2b-custom-registration-page .b2b-login-notice {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--b2bp-radius-sm);
  }

  .b2b-custom-registration-page .b2b-login-notice .button {
    width: 100%;
    justify-content: center;
  }
}


/* ========================================================================== 
   v2.1.8 — Dedicated Register page parity with My Account Login
   The registration shortcode is rendered inside the same single authentication
   surface as Login. No nested form card, border or independent canvas.
   ========================================================================== */
.b2bp-register-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.b2bp-register-page .b2bp-entry-content--auth {
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: clamp(28px, 4vw, 48px) !important;
  background: var(--b2bp-surface) !important;
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 10%, transparent) !important;
  border-radius: var(--b2bp-radius-lg) !important;
  box-shadow: 0 14px 42px color-mix(in srgb, var(--b2bp-primary) 7%, transparent) !important;
}

.b2bp-register-page .b2bp-auth-title {
  margin: 0 0 clamp(20px, 2.6vw, 28px);
  color: var(--b2bp-text);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 600;
}

.b2bp-register-page .b2b-custom-registration-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Apply for a B2B Account behaves as the secondary auth heading, not a second
   page title/card. */
.b2bp-register-page .b2b-custom-registration-page > h2 {
  margin: 0 0 clamp(20px, 2.6vw, 28px);
  color: var(--b2bp-text);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 600;
}

/* WooCommerce's default .register border/padding creates the extra box visible
   in the previous layout. Keep the form flat inside the outer auth surface. */
.b2bp-register-page form.woocommerce-form-register,
.b2bp-register-page form.register,
.b2bp-register-page .woocommerce form.register {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.b2bp-register-page .b2b-login-notice {
  margin-bottom: clamp(24px, 3vw, 32px);
}

.b2bp-register-page .b2b-register-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 3vw, 32px) 0;
  background: transparent;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--b2bp-primary) 12%, transparent);
  border-radius: 0;
  box-shadow: none;
}

.b2bp-register-page .b2b-login-notice + .b2b-register-section {
  padding-top: clamp(24px, 3vw, 32px);
}

.b2bp-register-page .b2b-register-section h3 {
  margin: 0 0 20px;
  color: var(--b2bp-text);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.b2bp-register-page .form-row {
  margin: 0 0 16px !important;
}

.b2bp-register-page label {
  display: block;
  margin: 0 0 7px;
  color: var(--b2bp-text);
  font-size: 12px;
  font-weight: 650;
}

.b2bp-register-page input.input-text,
.b2bp-register-page input[type="email"],
.b2bp-register-page input[type="password"],
.b2bp-register-page input[type="tel"],
.b2bp-register-page input[type="url"],
.b2bp-register-page select,
.b2bp-register-page textarea {
  width: 100%;
  min-height: var(--b2bp-input-height);
  padding: 0 14px;
  background: var(--b2bp-surface);
  border: 1px solid color-mix(in srgb, var(--b2bp-primary) 16%, transparent);
  border-radius: var(--b2bp-input-radius);
  box-shadow: none;
}

.b2bp-register-page textarea {
  min-height: 120px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.b2bp-register-page input:focus,
.b2bp-register-page select:focus,
.b2bp-register-page textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--b2bp-primary) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--b2bp-primary) 8%, transparent);
}

.b2bp-register-page .b2b-phone-wrapper {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, .66fr);
  gap: 12px;
}

.b2bp-register-page .woocommerce-form-register__submit {
  margin-top: 4px !important;
}

@media (max-width: 680px) {
  .b2bp-register-page .b2bp-entry-content--auth {
    padding: 24px 18px !important;
    border-radius: var(--b2bp-radius-md) !important;
  }

  .b2bp-register-page .b2b-phone-wrapper {
    grid-template-columns: 1fr;
  }

  .b2bp-register-page .woocommerce-form-register__submit {
    width: 100%;
    justify-content: center;
  }
}


/* ========================================================================== 
   v2.2.1 — My Account mobile rebuild
   No horizontal account navigation. Account endpoints stay fully inside the
   viewport and use the same responsive card shell as the authentication view.
   ========================================================================== */

body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content > *,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content form,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content fieldset {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  body.logged-in.woocommerce-account .b2bp-entry-content > .woocommerce {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important;
    padding: 0 0 22px !important;
    margin: 0 0 24px !important;
    border-right: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--b2bp-primary) 12%, transparent) !important;
    overflow: visible !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    padding: 0 !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation li {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a {
    justify-content: center !important;
    width: 100% !important;
    min-height: 46px;
    padding: 8px 10px !important;
    text-align: center;
    white-space: normal !important;
    line-height: 1.25;
  }

  body.logged-in.woocommerce-account .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.logged-in.woocommerce-account .woocommerce-orders-table,
  body.logged-in.woocommerce-account .woocommerce-table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 680px) {
  .woocommerce-account .b2bp-entry-content {
    padding: 20px !important;
    border-radius: var(--b2bp-radius-md) !important;
    overflow: hidden;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a {
    min-height: 48px;
    font-size: 12px;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    font-size: 15px;
    line-height: 1.65;
  }

  body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .form-row-first,
  body.logged-in.woocommerce-account .woocommerce-EditAccountForm > .form-row-last {
    display: block !important;
    width: 100% !important;
    margin-right: 0 !important;
  }

  body.logged-in.woocommerce-account .b2b-account-section--company {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: 1fr 1fr !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a {
    padding-inline: 7px !important;
    font-size: 11.5px;
  }
}

/* Customizer: shared mobile side padding for WooCommerce shells. */
@media (max-width: 680px) {
  .b2bp-commerce-main > .b2bp-shell {
    width: min(calc(100% - (2 * var(--b2bp-mobile-page-padding, 16px))), var(--b2bp-shell)) !important;
    margin-inline: auto !important;
  }
}
