/*
 * Spezzial Account Tabs — scoped styling for the tabbed WooCommerce login form.
 * Only applies once the JS adds .spz-acc-tabbed to #customer_login, so the form
 * is untouched if the JS doesn't run. Mirrors the AI-wrap modal look (brand
 * tokens: accent #000 / fg #fff, border #e5e5e5, muted #6b6b6b, radius 0).
 */

#customer_login.spz-acc-tabbed {
  display: block !important; /* override theme flex/grid so the tab bar + form stack */
  width: 100%;
  max-width: 480px; /* a login form doesn't need the full 875px lightbox width */
  margin-left: auto;
  margin-right: auto; /* centre the constrained form in its container */
  box-sizing: border-box;
}

/* Shrink the Flatsome login lightbox shell itself so the white modal matches the
   form width (ID beats the theme's .lightbox-content { max-width: 875px }). */
#login-form-popup.lightbox-content {
  max-width: 480px;
}

/* Collapse WooCommerce's two-column grid into one stacked, full-width column. */
#customer_login.spz-acc-tabbed .u-column1,
#customer_login.spz-acc-tabbed .u-column2,
#customer_login.spz-acc-tabbed .col-1,
#customer_login.spz-acc-tabbed .col-2,
#customer_login.spz-acc-tabbed .spz-acc-panel {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important; /* kill Flatsome's .row-divided divider (border-left on .col-2) — the stray left line on the Register panel */
}

/* Flatsome wraps each form in an .account-*-inner box (and styles form.login/
   form.register) with its own border/padding/background — strip it so the tab
   bar and form sit flush with a single clean border instead of nested boxes. */
#customer_login.spz-acc-tabbed .account-login-inner,
#customer_login.spz-acc-tabbed .account-register-inner,
#customer_login.spz-acc-tabbed form.login,
#customer_login.spz-acc-tabbed form.register {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* JS toggles this on the inactive panel and on the duplicate headings. */
#customer_login.spz-acc-tabbed .spz-acc-hide {
  display: none !important;
}

/* Belt-and-suspenders heading hide (the tabs replace these). WooCommerce default
   uses <h2>; Flatsome's form-login.php template uses <h3>. */
#customer_login.spz-acc-tabbed h2,
#customer_login.spz-acc-tabbed h3 {
  display: none !important;
}

/* Tab bar. */
#customer_login.spz-acc-tabbed .spz-acc-tabs {
  display: flex;
  border: 1px solid #e5e5e5;
  margin: 0 0 1.4rem;
  box-sizing: border-box;
}

#customer_login.spz-acc-tabbed .spz-acc-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #6b6b6b;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.9rem 1rem;
  margin: 0 !important; /* override Flatsome's global button { margin-bottom: 1em } so the tab fills the bar to its bottom border (and the divider spans full height) */
  cursor: pointer;
  text-align: center;
  border-radius: 0;
  box-sizing: border-box;
}

#customer_login.spz-acc-tabbed .spz-acc-tab + .spz-acc-tab {
  border-left: 1px solid #e5e5e5;
}

#customer_login.spz-acc-tabbed .spz-acc-tab.is-active {
  background: #000;
  color: #fff;
}
