/**
 * Theme Name: isB2B Theme
 * Description: Standalone pure-HTML/PHP theme for the isB2B WooCommerce platform. No parent theme, no page builder — all layout and styling in version-controlled files. Replaces the Blocksy + blocksy-child stack.
 * Author: Purple Commerce
 * Version: 0.1.0
 * Text Domain: isb2b
 * Requires Plugins: woocommerce
 *
 * NOTE: This is NOT a Blocksy child — it is fully self-contained. Some legacy wrapper
 * class names (.ct-container, .ct-header, .ct-footer) are retained as transitional hooks
 * so CSS/plugin selectors written against Blocksy keep matching during migration. They
 * will be purified to semantic names once visual parity is confirmed (Stage B).
 */

/* ══════════════════════════════════════════════════════
   CSS Variables — Brand tokens
   ══════════════════════════════════════════════════════ */
:root {
    /* Semantic tokens DERIVE from the 8-colour palette below (Blocksy allocation).
       The palette is the single source of truth; the Customizer overrides it. */
    --isb2b-primary:   var(--theme-palette-color-1);   /* accent — links, buttons */
    --isb2b-dark:      var(--theme-palette-color-4);   /* headings / dark surfaces */
    --isb2b-body:      var(--theme-palette-color-3);   /* body text */
    --isb2b-border:    var(--theme-palette-color-1);
    --text-gray:       #666;
    --isb2b-topbar-bg: #00aeef;   /* overridden by Customizer → Header Top Bar */
    --isb2b-topbar-fg: #ffffff;
    --isb2b-notice-bg: var(--theme-palette-color-4);
    --isb2b-notice-fg: var(--theme-palette-color-8);

    /* V2 Portal design tokens (consumed by the interprise plugin CSS) */
    --blue:        #1462a8;   --blue-light:  #e8f0fb;   --blue-mid:    #d0e2f7;
    --navy:        #1b2a3b;   --ink:         #1c1c22;   --ink-mid:     #52525e;
    --ink-light:   #8f8fa0;   --bg:          #f4f5f7;   --card:        #ffffff;
    --rule:        #e4e5ea;   --green:       #15803d;   --green-bg:    #dcfce7;
    --amber:       #b45309;   --amber-bg:    #fef3c7;   --red:         #b91c1c;
    --red-bg:      #fee2e2;   --purple:      #6d28d9;   --purple-bg:   #ede9fe;
    --radius-sm:   6px;       --radius-md:   10px;      --radius-lg:   16px;

    /* ── Bridge: concrete values for Blocksy --theme-* variables that ported
       CSS (woocommerce.css, plugin CSS) still references. Stage-B QA should
       confirm/replace each against the old Blocksy palette. ── */
    /* ── 8-colour palette (file defaults; Customizer → Colour Palette overrides) ──
       1 accent · 2 accent-hover · 3 body text · 4 headings/dark · 5 borders ·
       6-7 light backgrounds · 8 white. Also consumed by the interprise portal CSS. */
    --theme-palette-color-1: #00aeef;
    --theme-palette-color-2: #0095cc;
    --theme-palette-color-3: #3a4f66;
    --theme-palette-color-4: #192a3d;
    --theme-palette-color-5: #e1e8ed;
    --theme-palette-color-6: #f2f5f7;
    --theme-palette-color-7: #fafbfc;
    --theme-palette-color-8: #ffffff;
    --theme-text-color: var(--isb2b-body);
    --theme-link-initial-color: var(--isb2b-dark);
    --theme-link-hover-color: var(--isb2b-primary);
    --theme-normal-container-max-width: 1600px;
    --theme-content-vertical-spacing: 50px;
    --theme-button-min-height: 44px;
    --menu-items-spacing: 20px;

    /* Header sizing */
    --isb2b-header-height: 80px;
    --isb2b-container-pad: max(15px, 2vw);
}

/* Admin bar — hidden by default so W3TC-cached pages (built by an admin) don't
   expose the bar to customers. JS shows it back for actual administrators. */
#wpadminbar { display: none !important; }
/* Kill core's `html { margin-top: 32px !important }` admin-bar bump (it leaves a
   blank gap because we hide the bar). `html:root` (0,1,1) outranks core's `html`
   (0,0,1) regardless of load order. The identity JS restores the bar + margin
   (via inline !important) for actual admins. */
html:root { margin-top: 0 !important; }

*, *::before, *::after { box-sizing: border-box; }

/* ══════════════════════════════════════════════════════
   Global Typography
   ══════════════════════════════════════════════════════ */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--isb2b-body);
    line-height: 1.6;
    --wp--preset--font-size--small: 15px;
}

a { color: var(--theme-link-initial-color); text-decoration: none; }
a:hover { color: var(--theme-link-hover-color); }

h1, h2, h3, h4, h5, h6 { color: var(--isb2b-dark); line-height: 1.25; }
h3 { color: var(--isb2b-body); font-size: 20px; font-weight: 500; margin: 0 0 18px; }
p  { color: var(--isb2b-body); font-weight: 400; margin: 0 0 16px; line-height: 1.8em; padding: 0; }
img { max-width: 100%; height: auto; }

/* ══════════════════════════════════════════════════════
   Layout containers
   ══════════════════════════════════════════════════════ */
.ct-container,
.isb2b-container {
    width: 100%;
    max-width: var(--theme-normal-container-max-width);
    margin: 0 auto;
    padding: 0 var(--isb2b-container-pad);
}

main#main,
.ct-container-fluid,
.woocommerce-order {
    width: 100%;
    max-width: var(--theme-normal-container-max-width);
    padding: 0 var(--isb2b-container-pad);
}

main#main {
    margin: 0 auto;
    max-width: 1600px;
    padding-top: 20px;
    background: #fff;
}

.single-product main#main { max-width: 1400px; }

/* ══════════════════════════════════════════════════════
   Header (semantic — new markup)
   ══════════════════════════════════════════════════════ */
/* Notice bar — very top, optional (shown only when Customizer text is set) */
.site-notice {
    background: var(--isb2b-notice-bg);
    color: var(--isb2b-notice-fg);
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    padding: 7px var(--isb2b-container-pad);
}
.site-notice a { color: var(--isb2b-notice-fg); text-decoration: underline; }

/* Top utility bar (above the main header) */
.site-topbar {
    background: var(--isb2b-topbar-bg, #00aeef);
    color: var(--isb2b-topbar-fg, #fff);
    font-size: 13px;
}
.site-topbar__inner {
    max-width: var(--theme-normal-container-max-width);
    margin: 0 auto;
    min-height: 38px;
    padding: 6px var(--isb2b-container-pad);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-topbar a { color: var(--isb2b-topbar-fg, #fff); }
.site-topbar a:hover { color: var(--isb2b-topbar-fg, #fff); opacity: .82; }
.site-topbar__menu .menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-topbar__menu li { margin: 0; }
.site-topbar__contact { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
@media (max-width: 600px) {
    .site-topbar__inner { flex-direction: column; align-items: center; gap: 4px; }
    .site-topbar__menu .menu, .site-topbar__contact { gap: 16px; }
}

.ct-header,
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--rule);
    position: sticky;        /* freeze the main header on scroll */
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.site-header__row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--isb2b-header-height);
    padding: 10px var(--isb2b-container-pad);
    max-width: var(--theme-normal-container-max-width);
    margin: 0 auto;
}
.site-header__logo { flex: 1 1 0; }
.site-header__logo img { max-height: 56px; width: auto; display: block; }
.site-header__logo a { font-size: 22px; font-weight: 700; color: var(--isb2b-dark); }

/* Grey line icons (Shopify-style) */
.isb2b-icon { width: 22px; height: 22px; display: block; }

/* Search occupies the middle of the row but is capped so it doesn't sprawl on wide screens */
.site-header__search { flex: 0 1 560px; min-width: 0; }

/* Categories off-canvas drawer (slides in from the right — areco style) */
.site-nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 200;
    visibility: hidden; opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}
.site-nav-overlay.is-open { visibility: visible; opacity: 1; }

.site-nav {
    position: fixed; top: 0; right: 0;
    width: 380px; max-width: 88vw;
    height: 100vh; height: 100dvh;
    background: var(--navy);          /* #1b2a3b */
    color: #fff;
    z-index: 210;
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex; flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .25);
}
.site-nav.is-open { transform: translateX(0); }

.site-nav__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    flex: 0 0 auto;
}
.site-nav__title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.site-nav__close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.site-nav__close:hover { color: var(--isb2b-primary); }
.site-nav__body { flex: 1 1 auto; overflow-y: auto; padding: 6px 0; }

.site-nav ul.primary-menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu li { position: relative; margin: 0; }
.site-nav .menu > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }

/* Top-level item */
.site-nav .menu > li > a {
    display: block;
    padding: 14px 54px 14px 22px;
    font-size: 16px; font-weight: 600; line-height: 1.3;
    color: #fff;
}
.site-nav .menu > li > a:hover,
.site-nav .menu > li.is-expanded > a { color: var(--isb2b-primary); }

/* Accordion +/− toggle */
.site-nav__toggle {
    position: absolute; top: 0; right: 0;
    width: 54px; height: 50px;
    background: none; border: 0; cursor: pointer;
    color: rgba(255, 255, 255, .7); font-size: 22px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
.site-nav__toggle:hover { color: #fff; }

/* Sub-menu (accordion — hidden until parent expanded) */
.site-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 8px; display: none; }
.site-nav li.is-expanded > .sub-menu { display: block; }
.site-nav .sub-menu a {
    display: block;
    padding: 8px 22px 8px 38px;
    font-size: 15px; font-weight: 500; line-height: 1.4;
    color: rgba(255, 255, 255, .85);
}
.site-nav .sub-menu a:hover { color: var(--isb2b-primary); }

/* Lock page scroll while the drawer is open */
body.isb2b-nav-open { overflow: hidden; }

/* Header actions: account, cart, hamburger — right side; equal flex with the logo
   so the capped search box sits centered between them. */
.site-header__actions { display: flex; align-items: center; gap: 14px; flex: 1 1 0; justify-content: flex-end; }

/* Uniform icon box — every header icon is an identical 38px flex-centered cell,
   so they align perfectly and space evenly regardless of glyph shape. */
.header-icon {
    width: 38px; height: 38px; flex: 0 0 38px;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; line-height: 0;
    color: #5b5b5b; background: none; border: 0; cursor: pointer;
    border-radius: var(--radius-sm);
}
.header-icon:hover { color: var(--isb2b-dark); background: var(--bg); }
.header-icon .isb2b-icon { width: 23px; height: 23px; }
.isb2b-search-btn { display: inline-flex; align-items: center; line-height: 0; }
.site-header__actions a { color: var(--isb2b-dark); display: inline-flex; align-items: center; }

.isb2b-search-form { display: flex; align-items: center; position: relative; width: 100%; }
.isb2b-search-form input[type="search"] {
    flex: 1 1 auto; height: 44px; width: 100%; min-width: 0;
    border: 1px solid var(--rule); border-radius: var(--radius-sm);
    padding: 0 44px 0 16px;
}
.isb2b-search-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer;
    padding: 4px; color: #5b5b5b; display: inline-flex;
}
.isb2b-search-btn:hover { color: var(--isb2b-dark); }
.isb2b-search-btn .isb2b-icon { width: 20px; height: 20px; }

/* Live-search dropdown */
.isb2b-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 320px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
}
.isb2b-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule);
    color: var(--isb2b-dark);
}
.isb2b-search-item:hover { background: var(--bg); color: var(--isb2b-dark); }
.isb2b-search-item img,
.isb2b-search-noimg { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: var(--bg); flex: 0 0 40px; }
.isb2b-search-text { display: flex; flex-direction: column; line-height: 1.3; }
.isb2b-search-title { font-size: 14px; font-weight: 500; }
.isb2b-search-sku { font-size: 12px; color: var(--text-gray); }
.isb2b-search-viewall { display: block; padding: 10px 12px; font-weight: 600; color: var(--theme-palette-color-1); text-align: center; }
.isb2b-search-empty { padding: 14px 12px; color: var(--text-gray); font-size: 14px; }

/* Cart */
.ct-header-cart,
.isb2b-cart { position: relative; color: #5b5b5b; display: inline-flex; }
.isb2b-cart:hover { color: var(--isb2b-dark); }
.isb2b-cart-icon { display: inline-flex; }
.ct-dynamic-count-cart,
.isb2b-cart-count {
    position: absolute; top: 1px; right: 1px;
    background: var(--theme-palette-color-1); color: #fff;
    font-size: 10px; line-height: 16px; min-width: 16px; height: 16px;
    border-radius: 50%; text-align: center; padding: 0 3px;
    font-weight: 600;
}
.ct-dynamic-count-cart:empty,
.isb2b-cart-count:empty { display: none; }

/* Account dropdown (cached-page fill target) */
.ct-header-account-user-info,
.isb2b-account-info {
    visibility: hidden; /* JS reveals after ajax fills the correct user */
}
.ct-header-account-dropdown,
.isb2b-account-dropdown { position: relative; }

/* Account trigger (avatar + name/email) */
.isb2b-account-trigger { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--isb2b-dark); }
.isb2b-acc-label { font-size: 14px; font-weight: 600; color: var(--isb2b-dark); }
.isb2b-account-info { display: inline-flex; align-items: center; gap: 8px; }
.isb2b-acc-text { display: inline-flex; flex-direction: column; line-height: 1.2; text-align: left; }
.isb2b-acc-text b { font-size: 13px; font-weight: 600; color: var(--isb2b-dark); }
.isb2b-acc-text small { font-size: 11px; color: var(--text-gray); }
.isb2b-acc-icon { color: #5b5b5b; }
.isb2b-account-trigger:hover .isb2b-acc-icon { color: var(--isb2b-dark); }

/* Account dropdown panel (My Account portal links) */
.isb2b-account-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    z-index: 100;
    padding: 6px 0;
    margin-top: 10px;
}
/* Invisible bridge over the gap so the mouse can travel from the trigger to the
   panel without the hover dropping. */
.isb2b-account-panel::before {
    content: '';
    position: absolute;
    top: -12px; left: 0; right: 0;
    height: 12px;
}
.isb2b-account-dropdown:hover .isb2b-account-panel,
.isb2b-account-dropdown:focus-within .isb2b-account-panel,
.isb2b-account-dropdown.is-open .isb2b-account-panel { display: block; }
.isb2b-account-menu .menu { list-style: none; margin: 0; padding: 0; }
.isb2b-account-menu li { margin: 0; }
.isb2b-account-menu a { display: block; padding: 8px 18px; font-size: 14px; color: var(--isb2b-dark); white-space: nowrap; }
.isb2b-account-menu a:hover { background: var(--bg); color: var(--theme-palette-color-1); }

/* ══════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════ */
.ct-footer,
.site-footer {
    background: var(--theme-palette-color-4);          /* dark navy surface */
    color: var(--theme-palette-color-8);               /* light text */
    border-top: 3px solid var(--theme-palette-color-1);/* accent rule on top */
    margin-top: 60px;
    padding: 50px var(--isb2b-container-pad) 30px;
}
.site-footer, .site-footer p { color: rgba(255, 255, 255, .82); }
.site-footer__custom { max-width: var(--theme-normal-container-max-width); margin: 0 auto; }

/* Default placeholder layout (custom footer HTML may use these or its own) */
.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 36px;
}
.site-footer__col h4 { color: var(--theme-palette-color-8); font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer__col p { color: rgba(255, 255, 255, .8); }

.site-footer__inner {
    max-width: var(--theme-normal-container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-widget__title { color: var(--theme-palette-color-8); font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--theme-palette-color-1); }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer .menu li { margin-bottom: 8px; }
.site-footer__bottom {
    max-width: var(--theme-normal-container-max-width);
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}

/* ══════════════════════════════════════════════════════
   Buttons (baseline — WC + theme)
   ══════════════════════════════════════════════════════ */
.button,
.wp-element-button,
button.btn-submit,
.fp-card__btn {
    display: inline-block;
    background: var(--theme-palette-color-1);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    min-height: var(--theme-button-min-height);
    padding: 0 22px;
    line-height: var(--theme-button-min-height);
    font-weight: 600;
    cursor: pointer;
}
.button:hover,
.wp-element-button:hover,
button.btn-submit:hover { background: var(--theme-palette-color-2); color: #fff; }

/* ══════════════════════════════════════════════════════
   Products & WooCommerce (non-layout, ported)
   ══════════════════════════════════════════════════════ */
.featured_product_title { min-height: 45px; }
li.product-category.product,
li.product.type-product { padding: 10px; }

.isb2b-loop-sku,
.isb2b-single-sku,
.search-result-sku { display: block; font-size: 13px; color: var(--text-gray); }

.ct-product-sku { margin: 0 auto; }
.wc-block-product .wc-block-components-product-sku { text-align: center; }

p.woocommerce-mini-cart__total.total { color: unset; }

.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout .woocommerce-error li:not(:first-child) {
    display: none !important;
}

/* ══════════════════════════════════════════════════════
   My Account / portal (markup rendered by interprise plugin)
   ══════════════════════════════════════════════════════ */
.ct-acount-nav,
.isb2b-account-nav { margin-bottom: 20px; }

@media (max-width: 700px) {
    .woocommerce-account .hero-section.is-width-constrained { display: none; }
    .woocommerce-MyAccount-navigation ul {
        display: flex; text-align: center; line-height: 18px;
    }
    .ct-acount-nav,
    .isb2b-account-nav {
        overflow-x: auto; position: relative; top: -20px; padding: 10px 0; margin-bottom: 0;
    }
    .woocommerce-MyAccount-navigation ul li a { padding: 0 9px; border-radius: 0; }
}

/* ══════════════════════════════════════════════════════
   Responsive header
   ══════════════════════════════════════════════════════ */
/* Hamburger — uniform grey line icon (sizing/box handled by .header-icon) */
.site-header__toggle-icon { display: inline-flex; }
.short-text { display: none; }

@media (max-width: 768px) {
    .site-header__row { flex-wrap: wrap; gap: 12px; }
    .site-header__logo { order: 1; }
    .site-header__actions { order: 2; margin-left: auto; }
    .site-header__search { order: 3; flex: 1 1 100%; }
    .site-header__toggle-text { display: none; }
    .full-text { display: none; }
    .short-text { display: inline; }
}

/* ══════════════════════════════════════════════════════
   Miscellaneous (ported)
   ══════════════════════════════════════════════════════ */
body .is-layout-flex { align-items: stretch; }

svg.wc-block-next-previous-buttons__icon.wc-block-next-previous-buttons__icon--right,
svg.wc-block-next-previous-buttons__icon.wc-block-next-previous-buttons__icon--left { padding: 0; }

.border-col { padding-left: 5rem; padding-right: 4rem; padding-block: 1.4rem; }
.border-col h2 { font-size: 32px; font-weight: 300; line-height: 60px; color: var(--isb2b-body); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; }

/* Price skeleton — shimmer placeholder while AJAX fills .custom-ajax-price.
   Removes the "empty then price pops in" layout shift. */
.custom-ajax-price.is-price-loading {
    display: inline-block;
    min-width: 72px;
    height: 1em;
    border-radius: 4px;
    vertical-align: middle;
    background: linear-gradient(90deg, #ececec 25%, #f6f6f6 37%, #ececec 63%);
    background-size: 400% 100%;
    animation: isb2b-shimmer 1.4s ease infinite;
}
@keyframes isb2b-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .custom-ajax-price.is-price-loading { animation: none; }
}

/* ══════════════════════════════════════════════════════
   Login / Request-Access modal
   ══════════════════════════════════════════════════════ */
body.isb2b-modal-open { overflow: hidden; }
.isb2b-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.isb2b-modal[hidden] { display: none; }
.isb2b-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.isb2b-modal__card {
    position: relative; background: #fff; width: 420px; max-width: 92vw;
    max-height: 90vh; overflow-y: auto; border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3); padding: 28px;
}
.isb2b-modal__close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--text-gray); }
.isb2b-modal__close:hover { color: var(--isb2b-dark); }
.isb2b-modal__tabs { display: flex; margin: 0 0 20px; border-bottom: 1px solid var(--rule); }
.isb2b-modal__tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-gray); }
.isb2b-modal__tab.is-active { color: var(--isb2b-primary); border-bottom-color: var(--isb2b-primary); }
.isb2b-modal__pane { display: none; }
.isb2b-modal__pane.is-active { display: block; }
.isb2b-modal__pane h2 { font-size: 19px; margin: 0 0 6px; color: var(--isb2b-dark); }
.isb2b-modal__pane > p { margin: 0 0 16px; font-size: 14px; }
.isb2b-modal form input, .isb2b-modal form textarea {
    width: 100%; height: 44px; border: 1px solid var(--rule); border-radius: var(--radius-sm);
    padding: 0 14px; margin-bottom: 12px; font-size: 14px; box-sizing: border-box;
}
.isb2b-modal form textarea { height: auto; padding: 12px 14px; }
.isb2b-modal form button[type="submit"] {
    width: 100%; background: var(--isb2b-primary); color: #fff; border: 0; border-radius: var(--radius-sm);
    height: 46px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.isb2b-modal form button[type="submit"]:hover { background: var(--theme-palette-color-2); }
.isb2b-modal form button[disabled] { opacity: .7; cursor: default; }
.isb2b-modal__forgot { margin: -2px 0 12px; font-size: 13px; }
.isb2b-modal__msg { margin: 0 0 10px; font-size: 13px; color: var(--red); }
.isb2b-modal__msg:empty { margin: 0; }
.isb2b-modal__msg--ok { color: var(--green); }
