/*
 * ZCEBRA B2B — Front-end UI
 * v2.1.3
 * Scoped to .zb2b-shell so it can live safely inside Elementor/theme templates.
 */
.zb2b-shell {
    --zb2b-ink: #080808;
    --zb2b-white: #ffffff;
    --zb2b-paper: #f4f4f1;
    --zb2b-soft: #ecece8;
    --zb2b-line: #d6d6d0;
    --zb2b-muted: #6b6b67;
    --zb2b-accent: #dfff00;
    --zb2b-accent-ink: #0b0b0b;
    --zb2b-radius: 0px;
    --zb2b-shadow: 0 16px 44px rgba(0,0,0,.08);
    width: 100%;
    max-width: 1380px;
    margin: 36px auto 72px;
    padding: 0 22px;
    color: var(--zb2b-ink);
    font-family: var(--e-global-typography-primary-font-family, "League Spartan"), "League Spartan", Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}
.zb2b-shell *, .zb2b-shell *::before, .zb2b-shell *::after { box-sizing: border-box; }
.zb2b-shell h1, .zb2b-shell h2, .zb2b-shell h3, .zb2b-shell h4,
.zb2b-shell p, .zb2b-shell ul, .zb2b-shell ol { margin-top: 0; }
.zb2b-shell a { color: var(--zb2b-ink); }
.zb2b-shell img { max-width: 100%; }

/* Shared utility / brand language */
.zb2b-kicker,
.zb2b-panel-label,
.zb2b-section-label,
.zb2b-form-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.zb2b-kicker::before,
.zb2b-panel-label::before,
.zb2b-section-label::before,
.zb2b-form-label::before {
    content: "";
    width: 24px;
    height: 3px;
    background: var(--zb2b-accent);
}
.zb2b-muted { color: var(--zb2b-muted); }

.zb2b-button,
.zb2b-shell .button.zb2b-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 19px !important;
    border: 1px solid var(--zb2b-ink) !important;
    border-radius: var(--zb2b-radius) !important;
    background: var(--zb2b-ink) !important;
    color: var(--zb2b-white) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .11em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.zb2b-button:hover,
.zb2b-button:focus-visible {
    background: var(--zb2b-accent) !important;
    color: var(--zb2b-accent-ink) !important;
    transform: translateY(-1px);
}
.zb2b-button.small { min-height: 39px; padding: 10px 13px !important; font-size: 11px !important; }
.zb2b-button.outline { background: transparent !important; color: var(--zb2b-ink) !important; }
.zb2b-button.outline:hover { background: var(--zb2b-ink) !important; color: var(--zb2b-white) !important; }

/* Language selector */
.zb2b-langs { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.zb2b-langs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid currentColor;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none !important;
    transition: .16s ease;
}
.zb2b-langs a:hover,
.zb2b-langs a.is-active { background: var(--zb2b-accent); border-color: var(--zb2b-accent); color: var(--zb2b-accent-ink) !important; }

/* Alerts */
.zb2b-alert {
    position: relative;
    padding: 17px 19px 17px 22px;
    border: 1px solid var(--zb2b-line);
    background: var(--zb2b-paper);
    color: var(--zb2b-ink);
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 20px;
}
.zb2b-alert::before { content:""; position:absolute; inset:0 auto 0 0; width:5px; background:#8d8d88; }
.zb2b-alert.success::before { background: var(--zb2b-accent); }
.zb2b-alert.error::before { background: #d43b32; }

/* =========================================================
   REGISTRATION
   ========================================================= */
.zb2b-register-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 36px;
    align-items: start;
    min-height: 340px;
    padding: clamp(34px,5vw,70px);
    background: var(--zb2b-accent);
    color: var(--zb2b-ink);
    margin-bottom: 0;
}
.zb2b-register-hero::after {
    content: "B2B";
    position: absolute;
    right: -22px;
    bottom: -58px;
    font-size: clamp(150px,22vw,310px);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.085em;
    color: rgba(0,0,0,.055);
    pointer-events: none;
}
.zb2b-register-hero-main { position: relative; z-index: 1; max-width: 930px; }
.zb2b-register-hero .zb2b-kicker { color: var(--zb2b-ink); }
.zb2b-register-hero .zb2b-kicker::before { background: var(--zb2b-ink); }
.zb2b-register-hero h1 {
    max-width: 900px;
    margin: 13px 0 20px;
    color: var(--zb2b-ink) !important;
    font-family: inherit !important;
    font-size: clamp(44px,7vw,86px) !important;
    font-weight: 800 !important;
    line-height: .91 !important;
    letter-spacing: -.055em !important;
    text-transform: uppercase;
}
.zb2b-register-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(0,0,0,.78);
    font-size: clamp(16px,1.7vw,20px);
    line-height: 1.48;
}
.zb2b-register-hero .zb2b-langs { position: relative; z-index: 2; }
.zb2b-register-hero .zb2b-langs a { color: var(--zb2b-ink); border-color: rgba(0,0,0,.45); }

.zb2b-profile-stage {
    padding: clamp(30px,4vw,54px);
    border: 1px solid var(--zb2b-ink);
    border-top: 0;
    background: var(--zb2b-white);
}
.zb2b-profile-stage-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}
.zb2b-profile-stage-head h2 {
    margin: 0;
    font-family: inherit !important;
    font-size: clamp(27px,3vw,42px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
    text-transform: uppercase;
}
.zb2b-profile-stage-head p { margin: 0; max-width: 480px; color: var(--zb2b-muted); line-height: 1.45; }

.zb2b-type-cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0;
    border: 1px solid var(--zb2b-ink);
    background: var(--zb2b-ink);
    margin: 0;
}
.zb2b-type-card {
    position: relative;
    min-height: 300px;
    padding: 27px 25px 58px;
    border: 0;
    border-right: 1px solid var(--zb2b-ink);
    border-radius: 0;
    background: var(--zb2b-white);
    color: var(--zb2b-ink);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.zb2b-type-card:last-child { border-right: 0; }
.zb2b-type-card::after {
    content: "↗";
    position: absolute;
    right: 22px;
    bottom: 19px;
    font-size: 23px;
    font-weight: 600;
    transition: transform .18s ease;
}
.zb2b-type-card:hover::after,
.zb2b-type-card.is-active::after { transform: translate(2px,-2px); }
.zb2b-type-card:hover { background: var(--zb2b-paper); }
.zb2b-type-card.is-active { background: var(--zb2b-accent); color: var(--zb2b-accent-ink); }
.zb2b-type-card:focus-visible { outline: 4px solid var(--zb2b-accent); outline-offset: -5px; }
.zb2b-type-card-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 46px; }
.zb2b-card-code {
    display: inline-flex;
    padding: 7px 9px 6px;
    border: 1px solid currentColor;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}
.zb2b-card-index { font-size: 12px; font-weight: 700; opacity: .45; letter-spacing: .08em; }
.zb2b-type-card strong {
    display: block;
    max-width: 320px;
    margin: 0 0 16px;
    font-size: clamp(21px,2vw,29px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
    text-transform: uppercase;
}
.zb2b-type-card .zb2b-card-desc { display: block; max-width: 360px; color: #474744; font-size: 15px; line-height: 1.48; }
.zb2b-type-card.is-active .zb2b-card-desc { color: #252525; }

.zb2b-form {
    display: block;
    margin: 26px 0 0;
    padding: clamp(25px,3.2vw,44px);
    border: 1px solid var(--zb2b-ink);
    background: var(--zb2b-paper);
}
.zb2b-form-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--zb2b-line); }
.zb2b-form-head h3 { margin:0; font-family:inherit !important; font-size:28px !important; font-weight:800 !important; line-height:1 !important; letter-spacing:-.03em !important; text-transform:uppercase; }
.zb2b-form-head p { margin:0; color:var(--zb2b-muted); font-size:14px; }
.zb2b-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }
.zb2b-form label { display:block; margin:0 0 19px; font-size:11px; font-weight:800; letter-spacing:.08em; line-height:1.25; text-transform:uppercase; }
.zb2b-form input,
.zb2b-form select,
.zb2b-form textarea {
    width:100%;
    min-height:50px;
    margin-top:8px;
    padding:12px 13px;
    border:1px solid #aaa9a3;
    border-radius:0 !important;
    background:var(--zb2b-white);
    color:var(--zb2b-ink);
    font-family:inherit;
    font-size:15px;
    font-weight:500;
    letter-spacing:0;
    text-transform:none;
    box-shadow:none !important;
    outline:none;
}
.zb2b-form textarea { min-height:110px; resize:vertical; }
.zb2b-form input:focus,
.zb2b-form select:focus,
.zb2b-form textarea:focus { border-color:var(--zb2b-ink); box-shadow:0 0 0 3px var(--zb2b-accent) !important; }
.zb2b-check { display:flex !important; align-items:flex-start; gap:9px; margin-top:3px !important; font-size:13px !important; font-weight:600 !important; line-height:1.35 !important; letter-spacing:0 !important; text-transform:none !important; }
.zb2b-check input { flex:0 0 auto; width:17px; min-height:17px; height:17px; margin:0; accent-color:var(--zb2b-ink); }

/* =========================================================
   DASHBOARD
   ========================================================= */
.zb2b-dashboard { margin-top: 28px; }
.zb2b-b2b-header {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 32px;
    align-items: end;
    padding: clamp(28px,4.8vw,58px);
    background: var(--zb2b-accent);
    color: var(--zb2b-ink);
}
.zb2b-b2b-header::after {
    content:"Z";
    position:absolute;
    right:20%;
    bottom:-72px;
    color:rgba(0,0,0,.055);
    font-size:220px;
    font-weight:900;
    line-height:1;
    pointer-events:none;
}
.zb2b-header-main, .zb2b-header-actions { position:relative; z-index:1; }
.zb2b-b2b-header .zb2b-kicker { color:var(--zb2b-ink); }
.zb2b-b2b-header .zb2b-kicker::before { background:var(--zb2b-ink); }
.zb2b-b2b-header h1 {
    margin: 10px 0 18px;
    color: var(--zb2b-ink) !important;
    font-family: inherit !important;
    font-size: clamp(42px,6vw,76px) !important;
    font-weight: 800 !important;
    line-height: .9 !important;
    letter-spacing: -.055em !important;
    text-transform: uppercase;
}
.zb2b-client-identity { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.zb2b-client-code,
.zb2b-client-type {
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:8px 11px 7px;
    border:1px solid rgba(0,0,0,.42);
    color:var(--zb2b-ink);
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.zb2b-client-code { border-color:var(--zb2b-ink); background:var(--zb2b-ink); color:var(--zb2b-accent) !important; }
.zb2b-header-actions { display:flex; flex-direction:column; align-items:flex-end; gap:14px; }
.zb2b-b2b-header .zb2b-langs a { color:var(--zb2b-ink); border-color:rgba(0,0,0,.42); }
.zb2b-account-link {
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:var(--zb2b-ink) !important;
    font-size:12px;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
    text-decoration:none !important;
}
.zb2b-account-link::after { content:"↗"; font-size:17px; }
.zb2b-account-link:hover { color:var(--zb2b-ink) !important; text-decoration:underline !important; }

.zb2b-condition-strip {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    border:1px solid var(--zb2b-ink);
    border-top:0;
    background:var(--zb2b-ink);
}
.zb2b-condition-item { background:var(--zb2b-white); padding:18px 22px 17px; border-right:1px solid var(--zb2b-ink); }
.zb2b-condition-item:last-child { border-right:0; }
.zb2b-condition-item span { display:block; margin-bottom:4px; color:var(--zb2b-muted); font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.zb2b-condition-item strong { display:block; font-size:18px; font-weight:800; line-height:1.1; }

.zb2b-layout {
    display:grid;
    grid-template-columns:310px minmax(0,1fr);
    gap:22px;
    align-items:start;
    margin-top:22px;
}
.zb2b-sidebar { position:sticky; top:22px; }
.zb2b-panel,
.zb2b-section {
    border:1px solid var(--zb2b-ink);
    background:var(--zb2b-white);
    margin:0 0 22px;
}
.zb2b-panel { padding:24px 22px; }
.zb2b-panel-label { color:var(--zb2b-muted); margin-bottom:17px; }
.zb2b-panel h3 {
    margin:0 0 14px;
    font-family:inherit !important;
    font-size:24px !important;
    font-weight:800 !important;
    line-height:1.02 !important;
    letter-spacing:-.025em !important;
    text-transform:uppercase;
}
.zb2b-panel p { margin:0 0 10px; color:#444440; font-size:14px; line-height:1.45; }
.zb2b-tracker-photo {
    display:block;
    width:92px;
    height:92px;
    margin:0 0 17px;
    object-fit:cover;
    border:1px solid var(--zb2b-ink);
    border-radius:0;
    filter:grayscale(100%);
}
.zb2b-tracker-name { display:block; margin-bottom:5px; font-size:20px; font-weight:800; line-height:1.05; text-transform:uppercase; }
.zb2b-tracker-zone { display:block; margin-bottom:18px; color:var(--zb2b-muted); font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.zb2b-contact-links { display:flex; flex-direction:column; gap:0; margin-top:15px; border-top:1px solid var(--zb2b-line); }
.zb2b-contact-links > a:not(.zb2b-button) { padding:11px 0; border-bottom:1px solid var(--zb2b-line); font-size:13px; font-weight:700; text-decoration:none !important; overflow-wrap:anywhere; }
.zb2b-contact-links > a:not(.zb2b-button):hover { text-decoration:underline !important; }
.zb2b-contact-links .zb2b-button { margin-top:15px; align-self:flex-start; }

.zb2b-section { padding:clamp(22px,3vw,34px); }
.zb2b-section-head {
    display:flex;
    justify-content:space-between;
    gap:24px;
    align-items:end;
    padding-bottom:19px;
    margin-bottom:22px;
    border-bottom:1px solid var(--zb2b-line);
}
.zb2b-section-title-wrap { min-width:0; }
.zb2b-section-label { margin-bottom:10px; color:var(--zb2b-muted); }
.zb2b-section h2 {
    margin:0;
    font-family:inherit !important;
    font-size:clamp(29px,3.1vw,43px) !important;
    font-weight:800 !important;
    line-height:.96 !important;
    letter-spacing:-.04em !important;
    text-transform:uppercase;
}
.zb2b-section h3 {
    font-family:inherit !important;
    font-size:18px !important;
    font-weight:800 !important;
    line-height:1.1 !important;
    text-transform:uppercase;
}
.zb2b-section-head > a {
    flex:0 0 auto;
    font-size:11px;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
    text-decoration:none !important;
    border-bottom:2px solid var(--zb2b-accent);
    padding-bottom:3px;
}
.zb2b-section-head > a:hover { background:var(--zb2b-accent); }


/* Catalogue */
.zb2b-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.zb2b-product {
    position:relative;
    overflow:hidden;
    border:1px solid var(--zb2b-line);
    background:var(--zb2b-white);
    padding:0 0 16px;
    transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.zb2b-product:hover { border-color:var(--zb2b-ink); transform:translateY(-2px); box-shadow:var(--zb2b-shadow); }
.zb2b-product a { display:block; color:inherit !important; text-decoration:none !important; }
.zb2b-product .attachment-woocommerce_thumbnail,
.zb2b-product img { display:block; width:100%; height:auto; aspect-ratio:1/1; object-fit:contain; margin:0; padding:12px; background:var(--zb2b-paper); }
.zb2b-product h3 { margin:15px 14px 8px !important; min-height:37px; font-size:16px !important; line-height:1.08 !important; letter-spacing:-.015em !important; text-transform:none; }
.zb2b-product > div { padding:0 14px; font-size:15px; font-weight:800; }
.zb2b-product del { color:var(--zb2b-muted); font-weight:500; opacity:.7; }
.zb2b-product ins { color:var(--zb2b-ink); text-decoration:none; }
.zb2b-price del { opacity:.55; }
.zb2b-price ins { text-decoration:none; font-weight:800; }
.zb2b-price small { display:block; color:var(--zb2b-muted); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }

/* Activity / orders */
.zb2b-activity-subhead { margin:28px 0 12px; padding-top:4px; }
.zb2b-activity-subhead:first-of-type { margin-top:0; }
.zb2b-table-wrap { overflow:auto; border:1px solid var(--zb2b-ink); }
.zb2b-table { width:100%; min-width:720px; border-collapse:collapse; margin:0; }
.zb2b-table th,
.zb2b-table td { padding:14px 14px; border:0; border-bottom:1px solid var(--zb2b-line); text-align:left; vertical-align:middle; }
.zb2b-table th { background:var(--zb2b-accent); color:var(--zb2b-ink); font-size:10px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.zb2b-table tbody tr:last-child td { border-bottom:0; }
.zb2b-table tbody tr:hover td { background:#fafaf7; }
.zb2b-table td { font-size:14px; }
.zb2b-table td a { font-weight:800; text-decoration:none !important; border-bottom:2px solid var(--zb2b-accent); }

/* Tickets */
.zb2b-ticket-new { margin:8px 0 18px; border:1px solid var(--zb2b-ink); background:var(--zb2b-white); }
.zb2b-ticket-new summary { cursor:pointer; list-style:none; padding:15px 17px; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.zb2b-ticket-new summary::-webkit-details-marker { display:none; }
.zb2b-ticket-new summary::after { content:"+"; float:right; font-size:20px; line-height:.6; }
.zb2b-ticket-new[open] summary::after { content:"−"; }
.zb2b-form.compact { margin:0; border:0; border-top:1px solid var(--zb2b-ink); padding:18px; }
.zb2b-ticket-list { border:1px solid var(--zb2b-line); }
.zb2b-ticket { padding:18px; border-bottom:1px solid var(--zb2b-line); }
.zb2b-ticket:last-child { border-bottom:0; }
.zb2b-ticket > div:first-child { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.zb2b-ticket > div:first-child strong { font-size:16px; font-weight:800; }
.zb2b-ticket span { flex:0 0 auto; color:var(--zb2b-muted); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.zb2b-ticket p { margin:10px 0 0; color:#474744; font-size:14px; line-height:1.5; }
.zb2b-reply { margin-top:13px; padding:13px 14px; border-left:5px solid var(--zb2b-accent); background:var(--zb2b-paper); font-size:14px; line-height:1.5; }

/* Login form inside B2B shell */
.zb2b-shell .login-username,
.zb2b-shell .login-password { max-width:560px; }
.zb2b-shell .login-username label,
.zb2b-shell .login-password label { display:block; margin-bottom:6px; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.zb2b-shell .login-username input,
.zb2b-shell .login-password input { width:100%; min-height:48px; border:1px solid var(--zb2b-ink); border-radius:0; padding:10px 12px; }
.zb2b-shell .login-submit input { min-height:46px; padding:12px 18px; background:var(--zb2b-ink); color:var(--zb2b-white); border:1px solid var(--zb2b-ink); border-radius:0; font-family:inherit; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; cursor:pointer; }

/* Responsive */
@media (max-width: 1100px) {
    .zb2b-layout { grid-template-columns:270px minmax(0,1fr); }
    .zb2b-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .zb2b-shell { margin-top:22px; padding:0 16px; }
    .zb2b-register-hero { grid-template-columns:1fr; min-height:0; }
    .zb2b-register-hero .zb2b-langs { justify-self:start; }
    .zb2b-profile-stage-head { align-items:flex-start; flex-direction:column; }
    .zb2b-type-cards { grid-template-columns:1fr; }
    .zb2b-type-card { min-height:210px; border-right:0; border-bottom:1px solid var(--zb2b-ink); }
    .zb2b-type-card:last-child { border-bottom:0; }
    .zb2b-type-card-top { margin-bottom:27px; }
    .zb2b-b2b-header { grid-template-columns:1fr; align-items:start; }
    .zb2b-header-actions { align-items:flex-start; }
    .zb2b-condition-strip { grid-template-columns:1fr; }
    .zb2b-condition-item { border-right:0; border-bottom:1px solid var(--zb2b-ink); }
    .zb2b-condition-item:last-child { border-bottom:0; }
    .zb2b-layout { grid-template-columns:1fr; }
    .zb2b-sidebar { position:static; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
    .zb2b-sidebar .zb2b-panel { margin-bottom:0; }
}
@media (max-width: 640px) {
    .zb2b-shell { padding:0 12px; margin-bottom:48px; }
    .zb2b-register-hero, .zb2b-profile-stage, .zb2b-b2b-header, .zb2b-section { padding:24px 20px; }
    .zb2b-register-hero h1 { font-size:44px !important; }
    .zb2b-b2b-header h1 { font-size:43px !important; }
    .zb2b-grid2 { grid-template-columns:1fr; gap:0; }
    .zb2b-form-head, .zb2b-section-head { align-items:flex-start; flex-direction:column; }
    .zb2b-sidebar { grid-template-columns:1fr; }
    .zb2b-product-grid { grid-template-columns:1fr; }
    .zb2b-product h3 { min-height:0; }
    .zb2b-ticket > div:first-child { flex-direction:column; }
}
@media (prefers-reduced-motion: reduce) {
    .zb2b-shell *, .zb2b-shell *::before, .zb2b-shell *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}


/* v2.1.1 — Fix cards: force wrapping inside Elementor/theme button styles */
.zb2b-profile-stage {
    container-type: inline-size;
}
.zb2b-type-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    overflow: hidden;
    overflow-wrap: break-word;
}
.zb2b-type-card strong,
.zb2b-type-card .zb2b-card-desc,
.zb2b-type-card .zb2b-type-card-top {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
}
.zb2b-type-card strong {
    font-size: clamp(20px, 1.55vw, 25px) !important;
    line-height: 1.08 !important;
}
.zb2b-type-card .zb2b-card-desc {
    font-size: 14px;
    line-height: 1.5;
}

/* The site can place the shortcode in a narrow Elementor content column while
   the browser itself is wide. Container queries make the cards react to the
   actual B2B block width instead of only to viewport width. */
@container (max-width: 900px) {
    .zb2b-type-card {
        padding-left: 18px;
        padding-right: 18px;
    }
    .zb2b-type-card-top {
        margin-bottom: 30px;
    }
    .zb2b-type-card strong {
        font-size: 19px !important;
        line-height: 1.1 !important;
        letter-spacing: -.025em;
    }
    .zb2b-type-card .zb2b-card-desc {
        font-size: 13px;
        line-height: 1.48;
    }
}

@container (max-width: 650px) {
    .zb2b-type-cards {
        grid-template-columns: 1fr;
    }
    .zb2b-type-card {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--zb2b-ink);
        padding: 24px 20px 54px;
    }
    .zb2b-type-card:last-child {
        border-bottom: 0;
    }
    .zb2b-type-card strong {
        font-size: 22px !important;
    }
    .zb2b-type-card .zb2b-card-desc {
        font-size: 14px;
    }
}


/* =========================================================
   B2B readability boost — v2.1.3
   Increases small UI text without making the main display titles oversized.
   ========================================================= */
.zb2b-shell .zb2b-kicker,
.zb2b-shell .zb2b-panel-label,
.zb2b-shell .zb2b-section-label,
.zb2b-shell .zb2b-form-label { font-size: 13px; }
.zb2b-shell .zb2b-button,
.zb2b-shell .button.zb2b-button { font-size: 14px !important; }
.zb2b-shell .zb2b-button.small { font-size: 13px !important; }
.zb2b-shell .zb2b-langs a { min-width: 40px; height: 38px; font-size: 13px; }
.zb2b-shell .zb2b-alert { font-size: 16px; }
.zb2b-shell .zb2b-form-head p { font-size: 16px; }
.zb2b-shell .zb2b-form label { font-size: 13px; }
.zb2b-shell .zb2b-form input,
.zb2b-shell .zb2b-form select,
.zb2b-shell .zb2b-form textarea { font-size: 16px; }
.zb2b-shell .zb2b-check { font-size: 15px !important; }
.zb2b-dashboard .zb2b-client-code,
.zb2b-dashboard .zb2b-client-type { font-size: 13px; }
.zb2b-dashboard .zb2b-account-link { font-size: 14px; }
.zb2b-dashboard .zb2b-condition-item span { font-size: 12px; }
.zb2b-dashboard .zb2b-condition-item strong { font-size: 20px; }
.zb2b-dashboard .zb2b-panel p { font-size: 16px; }
.zb2b-dashboard .zb2b-tracker-zone { font-size: 14px; }
.zb2b-dashboard .zb2b-contact-links > a:not(.zb2b-button) { font-size: 15px; }
.zb2b-dashboard .zb2b-section-head > a { font-size: 13px; }
.zb2b-dashboard .zb2b-product h3 { font-size: 18px !important; }
.zb2b-dashboard .zb2b-product > div { font-size: 17px; }
.zb2b-dashboard .zb2b-price small { font-size: 13px; }
.zb2b-dashboard .zb2b-table th { font-size: 12px; }
.zb2b-dashboard .zb2b-table td { font-size: 16px; }
.zb2b-dashboard .zb2b-ticket-new summary { font-size: 14px; }
.zb2b-dashboard .zb2b-ticket span { font-size: 12px; }
.zb2b-dashboard .zb2b-ticket p,
.zb2b-dashboard .zb2b-reply { font-size: 16px; }
.zb2b-shell .login-username label,
.zb2b-shell .login-password label { font-size: 13px; }
.zb2b-shell .login-submit input { font-size: 14px; }

/* v2.2.0 requested B2B refinements */
.zb2b-register-hero h1{font-size:clamp(38px,5vw,68px)!important;line-height:1!important;white-space:nowrap}
.zb2b-button,.zb2b-form button[type="submit"]{background:#d8ff00!important;color:#111!important;border-color:#d8ff00!important}
.zb2b-button:hover,.zb2b-form button[type="submit"]:hover{background:#111!important;color:#d8ff00!important}
.zb2b-form textarea{width:100%;min-height:88px;border:1px solid var(--zb2b-line);background:#fff;padding:14px}
@media(max-width:600px){.zb2b-register-hero h1{font-size:36px!important;white-space:normal}}

/* v2.7.0 — formulario B2B: direcciones desglosadas */
.zb2b-grid2 .zb2b-grid-full { grid-column: 1 / -1; }
.zb2b-address-title {
    margin: 8px 0 18px;
    padding: 14px 0 10px;
    border-top: 1px solid var(--zb2b-line);
    border-bottom: 1px solid var(--zb2b-line);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.zb2b-optional { font-weight: 500; opacity: .62; text-transform: none; letter-spacing: 0; }

/* v2.8.1: dirección de envío opcional en registro B2B */
.zb2b-shipping-toggle { margin-top: 12px !important; }
.zb2b-shipping-fields[hidden] { display: none !important; }
.zb2b-shipping-fields > .zb2b-address-title { margin-top: 8px; }
