/*
 * Cloudmaple B2C Portal — registration, login and account-type styles.
 * Brand colors come from the same CSS variables as the portal.
 */

.cmb2c-auth{
	--cmb2c-primary:#1E4E79;
	--cmb2c-primary-hover:#173E61;
	--cmb2c-primary-soft:#E8F0F8;
	--cmb2c-sidebar-bg:#132B44;
	--cmb2c-sidebar-active:#1E4E79;
	/* Derived from the brand colours in PHP; these are the values for the defaults. */
	--cmb2c-on-primary:#FFFFFF;
	--cmb2c-on-sidebar-active:#FFFFFF;
	--cmb2c-link:#1E4E79;
	--cmb2c-bg:#F3F5F8;
	--cmb2c-surface:#FFFFFF;
	--cmb2c-border:#E3E7EE;
	--cmb2c-text:#1C2530;
	--cmb2c-text-2:#5A6675;
	--cmb2c-text-3:#8B95A3;
	--cmb2c-ok-bg:#E4F3EA;--cmb2c-ok-fg:#166534;
	--cmb2c-info-bg:#E7F0FA;--cmb2c-info-fg:#1D4ED8;
	--cmb2c-warn-bg:#FBF0DC;--cmb2c-warn-fg:#92500B;
	--cmb2c-bad-bg:#FBE7E7;--cmb2c-bad-fg:#B3261E;
	--cmb2c-radius:12px;
	--cmb2c-shadow:0 1px 2px rgba(16,24,40,.05),0 8px 26px rgba(16,24,40,.07);
	color:var(--cmb2c-text);
	font-size:14.5px;
	line-height:1.5;
	margin:0 0 40px;
}
.cmb2c-auth *,.cmb2c-auth *::before,.cmb2c-auth *::after{box-sizing:border-box}
.cmb2c-auth [hidden],.cmb2c-portal [hidden]{display:none !important}
.cmb2c-auth h1,.cmb2c-auth h2{margin:0;letter-spacing:-.2px}
.cmb2c-auth p{margin:0}
.cmb2c-auth a{color:var(--cmb2c-link);text-decoration:none}

/* Flex with wrapping rather than a fixed two-column grid: the layout must react
   to the width of the container, not the viewport. A theme with a narrow
   content column or a sidebar gave the brand panel its full 400px and left the
   form a sliver a few characters wide. Now the form keeps a sensible minimum
   and drops below the panel whenever there is not room for both. */
.cmb2c-auth-box{
	display:flex;flex-wrap:wrap;align-items:stretch;
	background:var(--cmb2c-surface);border:1px solid var(--cmb2c-border);
	border-radius:16px;box-shadow:var(--cmb2c-shadow);overflow:hidden;
}
.cmb2c-auth-brand{flex:1 1 320px;max-width:400px;min-width:0}
.cmb2c-auth-form{flex:10 1 440px;min-width:0}
@supports (container-type:inline-size){
	.cmb2c-auth{container-type:inline-size}
	@container (max-width:820px){
		.cmb2c-auth-brand{max-width:none;flex-basis:100%}
		.cmb2c-auth-form{flex-basis:100%}
	}
}
@media (max-width:900px){.cmb2c-auth-brand{max-width:none}}

/* ============ Brand panel ============ */
.cmb2c-auth-brand{
	background:linear-gradient(160deg,var(--cmb2c-sidebar-bg) 0%,rgba(0,0,0,.35) 220%);
	color:rgba(255,255,255,.78);padding:36px 32px;display:flex;flex-direction:column;gap:26px;
}
.cmb2c-auth-logo{display:flex;align-items:center;gap:11px}
.cmb2c-auth-logo>span{display:flex;flex-direction:column}
.cmb2c-auth-logo-initial{width:38px;height:38px;border-radius:9px;background:var(--cmb2c-sidebar-active);color:var(--cmb2c-on-sidebar-active);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;flex-shrink:0}
.cmb2c-auth-logo-img{width:38px;height:38px;border-radius:9px;object-fit:contain;background:#fff;padding:2px;flex-shrink:0}
.cmb2c-auth-logo-name{color:#fff;font-weight:700;font-size:15.5px}
.cmb2c-auth-logo-sub{font-size:11.5px;color:rgba(255,255,255,.55)}
.cmb2c-auth-pitch h2{font-size:24px;line-height:1.28;color:#fff;font-weight:700}
.cmb2c-auth-pitch p{margin-top:9px;font-size:14px;color:rgba(255,255,255,.68)}
.cmb2c-auth-usp{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px}
.cmb2c-auth-usp li{display:flex;gap:11px;font-size:13.5px}
.cmb2c-auth-usp strong{display:block;color:#fff;font-weight:600}
.cmb2c-auth-usp span span{color:rgba(255,255,255,.62)}
.cmb2c-auth-usp-ic{flex:0 0 22px;height:22px;border-radius:6px;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;margin-top:1px}
.cmb2c-auth-usp-ic svg{width:13px;height:13px;color:#fff}
.cmb2c-auth-foot{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.1);font-size:12px;color:rgba(255,255,255,.55)}
.cmb2c-auth-foot a{color:rgba(255,255,255,.8)}

/* ============ Form side ============ */
.cmb2c-auth-form{padding:36px 40px 38px;min-width:0}
.cmb2c-auth-title{font-size:21px;font-weight:700}
.cmb2c-auth-sub{color:var(--cmb2c-text-2);font-size:13.5px;margin-top:5px !important}
.cmb2c-auth-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.cmb2c-auth-link{font-size:13px;font-weight:600}
.cmb2c-auth-alt{margin-top:22px;padding-top:18px;border-top:1px solid var(--cmb2c-border);font-size:13.5px;color:var(--cmb2c-text-2);text-align:center}
.cmb2c-auth-alt-label{display:block;font-size:13px;color:var(--cmb2c-text-2);margin-bottom:10px}
.cmb2c-auth .cmb2c-auth-alt .cmb2c-btn-block{margin-top:0;border-color:var(--cmb2c-link);color:var(--cmb2c-link)}
.cmb2c-auth .cmb2c-auth-alt .cmb2c-btn-block:hover{background:var(--cmb2c-primary-soft);border-color:var(--cmb2c-link)}
.cmb2c-auth-note{display:block;font-size:12.5px;margin-top:9px;color:var(--cmb2c-text-3)}

/* ============ Register call-to-action (login screen) ============
   Shop owners reported customers could not find registration at all. It now has
   two entry points: one on the heading row for the visitor who already knows
   they need an account, and a panel below the form for the one who tries to
   sign in first. */
.cmb2c-auth-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.cmb2c-auth-head-text{min-width:0}
.cmb2c-auth-head-cta{display:flex;align-items:center;gap:12px;flex-shrink:0}
.cmb2c-auth-head-cta>span{font-size:13px;color:var(--cmb2c-text-2);white-space:nowrap}
.cmb2c-auth .cmb2c-auth-head-cta .cmb2c-btn{
	border-color:var(--cmb2c-link);color:var(--cmb2c-link);background:var(--cmb2c-surface);
	padding:9px 15px;font-size:13.5px;white-space:nowrap;
}
.cmb2c-auth .cmb2c-auth-head-cta .cmb2c-btn:hover{background:var(--cmb2c-primary-soft);border-color:var(--cmb2c-link)}
.cmb2c-auth-head-cta .cmb2c-btn svg{width:14px;height:14px}

.cmb2c-auth-invite{
	margin-top:26px;background:var(--cmb2c-primary-soft);border-radius:12px;
	padding:20px 22px;display:flex;align-items:center;gap:18px;
}
.cmb2c-auth-invite-ic{
	flex:0 0 54px;height:54px;border-radius:50%;background:var(--cmb2c-surface);
	display:flex;align-items:center;justify-content:center;
}
.cmb2c-auth-invite-ic svg{width:26px;height:26px;color:var(--cmb2c-link)}
.cmb2c-auth-invite-body{flex:1;min-width:0}
.cmb2c-auth-invite-body strong{display:block;font-size:14.5px;font-weight:700;margin-bottom:4px;color:var(--cmb2c-text)}
.cmb2c-auth-invite-body p{margin:0 !important;font-size:13.2px;color:var(--cmb2c-text-2);line-height:1.55}
.cmb2c-auth-invite .cmb2c-btn{flex-shrink:0;white-space:nowrap}
.cmb2c-auth-invite .cmb2c-btn svg{width:14px;height:14px}

.cmb2c-auth-trust{
	display:flex;align-items:flex-start;justify-content:center;gap:9px;
	margin:16px 0 0 !important;font-size:12.5px;color:var(--cmb2c-text-3);text-align:center;
}
.cmb2c-auth-trust svg{width:15px;height:15px;color:var(--cmb2c-link);flex-shrink:0;margin-top:1px}
.cmb2c-auth-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:26px}
.cmb2c-auth-actions-right{display:flex;gap:9px;align-items:center;margin-left:auto}

/* ============ Fields ============ */
.cmb2c-field{margin:16px 0 0 !important;display:block}
.cmb2c-field label{display:block;font-size:13px;font-weight:600;color:var(--cmb2c-text);margin-bottom:6px}
.cmb2c-req{color:var(--cmb2c-bad-fg)}
.cmb2c-opt{color:var(--cmb2c-text-3);font-weight:400;font-size:12px}
.cmb2c-hint{display:block;font-size:12px;color:var(--cmb2c-text-3);margin-top:5px}
.cmb2c-auth input[type=text],.cmb2c-auth input[type=email],.cmb2c-auth input[type=password],
.cmb2c-auth input[type=tel],.cmb2c-auth select,.cmb2c-auth textarea{
	width:100%;padding:10px 12px;border:1px solid var(--cmb2c-border);border-radius:8px;
	font-size:14px;font-family:inherit;background:#fff;color:var(--cmb2c-text);
}
.cmb2c-auth input:focus,.cmb2c-auth select:focus,.cmb2c-auth textarea:focus{
	outline:none;border-color:var(--cmb2c-link);box-shadow:0 0 0 3px var(--cmb2c-primary-soft);
}
.cmb2c-row-2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.cmb2c-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 14px}
.cmb2c-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}

.cmb2c-check{display:flex;gap:9px;align-items:flex-start;font-size:13px;margin:0}
/* Themes love to restyle checkboxes with appearance:none plus a background
   image sized against their own layout; dropped into ours, the unchecked state
   collapses to a stray dot. Hand these back to the browser and tint them with
   the brand colour instead. Scoped to .cmb2c-check so the account-type radios,
   which are deliberately hidden behind their cards, keep their own rules. */
.cmb2c-check input[type=checkbox],.cmb2c-check input[type=radio]{
	-webkit-appearance:auto;appearance:auto;
	width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;
	margin:2px 0 0;padding:0;flex:0 0 auto;
	background:#fff;background-image:none;background-size:auto;
	border:0;border-radius:0;box-shadow:none;transform:none;opacity:1;
	position:static;top:auto;left:auto;
	accent-color:var(--cmb2c-primary);
}
.cmb2c-check input[type=checkbox]::before,.cmb2c-check input[type=radio]::before,
.cmb2c-check input[type=checkbox]::after,.cmb2c-check input[type=radio]::after{content:none !important;display:none !important}
.cmb2c-consents{margin-top:20px;padding-top:16px;border-top:1px solid var(--cmb2c-border);display:flex;flex-direction:column;gap:11px}

/* ============ Buttons ============ */
.cmb2c-auth .cmb2c-btn,.cmb2c-account-type .cmb2c-btn{
	display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;
	border-radius:8px;padding:10px 18px;font-size:14px;font-weight:600;cursor:pointer;line-height:1.4;
	text-decoration:none;font-family:inherit;transition:background .15s;
}
.cmb2c-auth .cmb2c-btn-primary{background:var(--cmb2c-primary);color:var(--cmb2c-on-primary)}
.cmb2c-auth .cmb2c-btn-primary:hover{background:var(--cmb2c-primary-hover);color:var(--cmb2c-on-primary)}
.cmb2c-auth .cmb2c-btn-ghost,.cmb2c-account-type .cmb2c-btn-ghost{background:#fff;border-color:var(--cmb2c-border);color:var(--cmb2c-text)}
.cmb2c-auth .cmb2c-btn-ghost:hover,.cmb2c-account-type .cmb2c-btn-ghost:hover{border-color:#C9D1DC}
.cmb2c-btn-block{width:100%;margin-top:20px}

/* ============ Account type picker ============ */
.cmb2c-pick{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}
.cmb2c-pick-card{
	display:flex;flex-direction:column;gap:8px;border:2px solid var(--cmb2c-border);border-radius:12px;
	padding:18px;cursor:pointer;background:#fff;position:relative;
}
.cmb2c-pick-card:hover{border-color:#C9D1DC}
.cmb2c-pick-card.is-selected{border-color:var(--cmb2c-primary);background:var(--cmb2c-primary-soft)}
.cmb2c-pick-card input{position:absolute;opacity:0;pointer-events:none}
.cmb2c-pick-ic{width:36px;height:36px;border-radius:9px;background:var(--cmb2c-sidebar-bg);color:#fff;display:flex;align-items:center;justify-content:center}
.cmb2c-pick-ic svg{width:18px;height:18px}
.cmb2c-pick-title{font-weight:650;font-size:15px}
.cmb2c-pick-text{font-size:12.8px;color:var(--cmb2c-text-2)}
.cmb2c-pick-list{display:flex;flex-direction:column;gap:3px;font-size:12.5px;color:var(--cmb2c-text-2);margin-top:2px}
.cmb2c-pick-list span{padding-left:14px;position:relative}
.cmb2c-pick-list span::before{content:"";position:absolute;left:2px;top:8px;width:4px;height:4px;border-radius:50%;background:var(--cmb2c-text-3)}

/* ============ VAT block ============ */
.cmb2c-vat{border:1px solid var(--cmb2c-border);border-radius:10px;padding:16px;background:#FBFCFE;margin-top:18px}
.cmb2c-vat-toggle{display:inline-flex;background:#EEF1F5;border-radius:8px;padding:3px;gap:3px;margin-bottom:13px}
.cmb2c-vat-tg{border:none;background:transparent;font:inherit;font-size:12.8px;font-weight:600;color:var(--cmb2c-text-2);padding:6px 13px;border-radius:6px;cursor:pointer}
.cmb2c-vat-tg.is-on{background:#fff;color:var(--cmb2c-text);box-shadow:0 1px 2px rgba(16,24,40,.12)}
.cmb2c-vat-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.cmb2c-vat-in{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:9px}
.cmb2c-vat-in .cmb2c-btn{white-space:nowrap}
.cmb2c-vat-result{margin-top:14px;border-radius:9px;padding:13px 14px;font-size:13.2px}
.cmb2c-vat-result strong{display:block;margin-bottom:4px}
.cmb2c-vat-result-ok{background:var(--cmb2c-ok-bg);border:1px solid #BCE0CC;color:#12513A}
.cmb2c-vat-result-warn{background:var(--cmb2c-warn-bg);border:1px solid #F0D9A8;color:#7A4F0A}
.cmb2c-vat-result-info{background:var(--cmb2c-info-bg);border:1px solid #C6DCF2;color:#1A4E7D}
.cmb2c-vat-result-info[hidden]{display:none}

/* ============ Steps ============ */
.cmb2c-steps{display:flex;gap:0;margin:0 0 24px;border-bottom:1px solid var(--cmb2c-border);flex-wrap:wrap}
.cmb2c-steps-item{display:flex;align-items:center;gap:8px;padding:0 0 12px;margin-right:24px;font-size:13px;color:var(--cmb2c-text-3);position:relative}
.cmb2c-steps-item span{width:21px;height:21px;border-radius:50%;background:#E9EDF3;color:var(--cmb2c-text-3);display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:700}
.cmb2c-steps-item.is-current{color:var(--cmb2c-text);font-weight:600}
.cmb2c-steps-item.is-current span{background:var(--cmb2c-primary);color:var(--cmb2c-on-primary)}
.cmb2c-steps-item.is-done span{background:var(--cmb2c-ok-fg);color:#fff}
.cmb2c-steps-item.is-current::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--cmb2c-primary)}

/* ============ Notices (auth + portal) ============ */
.cmb2c-notice{display:flex;gap:13px;align-items:flex-start;border-radius:10px;padding:14px 16px;font-size:13.5px;margin-bottom:18px}
.cmb2c-notice-ic{flex:0 0 24px;height:24px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-weight:700}
.cmb2c-notice-ic svg{width:14px;height:14px}
.cmb2c-notice strong{display:block;margin-bottom:2px}
.cmb2c-notice-line{display:block}
.cmb2c-notice-links{display:block;margin-top:8px}
.cmb2c-notice-warn{background:#FBF0DC;border:1px solid #F0D9A8;color:#6F4A0D}
.cmb2c-notice-warn .cmb2c-notice-ic{background:#F3CE8C;color:#6F4A0D}
.cmb2c-notice-warn a{color:#6F4A0D;text-decoration:underline}
.cmb2c-notice-info{background:#E7F0FA;border:1px solid #C6DCF2;color:#1A4E7D}
.cmb2c-notice-info .cmb2c-notice-ic{background:#B9D4EE;color:#1A4E7D}
.cmb2c-notice-info a{color:#1A4E7D;text-decoration:underline}
.cmb2c-notice-err{background:#FBE7E7;border:1px solid #F0C0BA;color:#8C2C20}
.cmb2c-notice-err .cmb2c-notice-ic{background:#EFACA3;color:#8C2C20}
.cmb2c-notice-ok{background:#E4F3EA;border:1px solid #BCE0CC;color:#12513A}
.cmb2c-notice-ok .cmb2c-notice-ic{background:#9ED6BA;color:#12513A}

/* ============ Account details: person / company switch ============ */
.cmb2c-account-type{margin:6px 0 22px;padding:18px;border:1px solid var(--cmb2c-border);border-radius:12px;background:var(--cmb2c-bg,#F3F5F8)}
.cmb2c-account-type>legend,.cmb2c-account-type-title{font-size:14.5px;font-weight:650;margin:0 0 4px;display:block}
.cmb2c-account-type-sub{font-size:13px;color:var(--cmb2c-text-2);margin:0 0 4px}
.cmb2c-account-type .cmb2c-pick{margin-top:12px}
.cmb2c-account-type .cmb2c-pick-card{padding:14px 16px;gap:5px}
.cmb2c-account-type .cmb2c-vat{margin-top:16px}
.cmb2c-account-type .cmb2c-field{margin-top:14px !important}
.cmb2c-account-type .cmb2c-field label{display:block;font-size:13px;font-weight:600;color:var(--cmb2c-text);margin-bottom:6px}
.cmb2c-account-type .cmb2c-vat-in select{width:auto}
.cmb2c-vies-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;border-radius:20px;padding:3px 10px;margin-top:10px}
.cmb2c-vies-badge svg{width:13px;height:13px}
.cmb2c-vies-badge.is-ok{background:var(--cmb2c-ok-bg);color:var(--cmb2c-ok-fg)}
.cmb2c-vies-badge.is-bad{background:var(--cmb2c-warn-bg);color:var(--cmb2c-warn-fg)}

/* ============ Responsive ============ */
@media (max-width:900px){
	.cmb2c-auth-brand{padding:26px 22px;gap:18px}
	.cmb2c-auth-form{padding:26px 22px 30px}
	.cmb2c-pick{grid-template-columns:1fr}
	.cmb2c-row-2,.cmb2c-row-3{grid-template-columns:1fr}
	.cmb2c-vat-in{grid-template-columns:80px minmax(0,1fr)}
	.cmb2c-vat-in .cmb2c-btn{grid-column:1/-1}
	.cmb2c-auth-actions{flex-direction:column-reverse;align-items:stretch}
	.cmb2c-auth-actions-right{margin-left:0}
	.cmb2c-auth-actions-right .cmb2c-btn{flex:1}

	/* The heading-row CTA has no room beside the title on a phone, so it drops
	   below the subtitle and spans the width rather than being squeezed. */
	.cmb2c-auth-head-cta{width:100%;margin-top:4px}
	.cmb2c-auth .cmb2c-auth-head-cta .cmb2c-btn{flex:1;justify-content:center}
	.cmb2c-auth-invite{flex-direction:column;align-items:stretch;text-align:center;gap:14px}
	/* In the column layout flex-basis governs height, so the width has to be
	   restated or the circle collapses to the width of the glyph. */
	.cmb2c-auth-invite-ic{flex:0 0 auto;width:54px;margin:0 auto}
	.cmb2c-auth-invite .cmb2c-btn{justify-content:center}
}

/* ============ Theme hardening ============
   Block themes and Twenty Twenty-One style every <button> with selectors such
   as button:not(:hover):not(:active):not(.has-background), which outrank a
   plain two-class rule. Restate the brand look at a higher specificity so the
   portal buttons never inherit the theme's default dark button. */
.cmb2c-auth button.cmb2c-btn-primary:not(:hover):not(:active):not(.has-background),
.cmb2c-portal button.cmb2c-btn-primary:not(:hover):not(:active):not(.has-background){background:var(--cmb2c-primary);color:var(--cmb2c-on-primary);border-color:transparent}
.cmb2c-auth button.cmb2c-btn-primary:hover,.cmb2c-portal button.cmb2c-btn-primary:hover{background:var(--cmb2c-primary-hover);color:var(--cmb2c-on-primary)}
.cmb2c-auth button.cmb2c-btn-ghost:not(:hover):not(:active):not(.has-background),
.cmb2c-portal button.cmb2c-btn-ghost:not(:hover):not(:active):not(.has-background){background:#fff;color:var(--cmb2c-text);border:1px solid var(--cmb2c-border)}
.cmb2c-auth button.cmb2c-btn-ghost:hover,.cmb2c-portal button.cmb2c-btn-ghost:hover{background:#fff;color:var(--cmb2c-text);border-color:#C9D1DC}
.cmb2c-auth button.cmb2c-vat-tg:not(:hover):not(:active):not(.has-background),
.cmb2c-portal button.cmb2c-vat-tg:not(:hover):not(:active):not(.has-background){background:transparent;color:var(--cmb2c-text-2);border:none;padding:6px 13px;font-size:12.8px}
.cmb2c-auth button.cmb2c-vat-tg.is-on:not(:hover):not(:active),.cmb2c-auth button.cmb2c-vat-tg.is-on:hover,
.cmb2c-portal button.cmb2c-vat-tg.is-on:not(:hover):not(:active),.cmb2c-portal button.cmb2c-vat-tg.is-on:hover{background:#fff;color:var(--cmb2c-text);box-shadow:0 1px 2px rgba(16,24,40,.12)}
.cmb2c-auth button.cmb2c-vat-tg:hover,.cmb2c-portal button.cmb2c-vat-tg:hover{background:transparent;color:var(--cmb2c-text)}
/* Themes size <p>, <label> and <legend> for article text; inside the portal the
   component sizes win. */
.cmb2c-auth p,.cmb2c-auth label,.cmb2c-portal .cmb2c-account-type p,.cmb2c-portal .cmb2c-account-type label,
.cmb2c-portal .cmb2c-prefs p,.cmb2c-portal .cmb2c-prefs label,.cmb2c-portal .cmb2c-newsletter label,.cmb2c-portal .cmb2c-empty p{font-size:inherit;line-height:1.5}
.cmb2c-portal .cmb2c-account-type>legend{font-size:14.5px;font-weight:650;padding:0;margin:0 0 4px}
.cmb2c-portal .cmb2c-account-type-sub,.cmb2c-portal .cmb2c-pref-note{font-size:12.9px}
.cmb2c-portal .cmb2c-check span,.cmb2c-auth .cmb2c-check span{font-size:13.2px}
.cmb2c-portal .cmb2c-pick-card input[type=radio],.cmb2c-auth .cmb2c-pick-card input[type=radio]{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;min-width:0;min-height:0;margin:0}
.cmb2c-portal .cmb2c-pick-card{gap:6px}
.cmb2c-portal .cmb2c-empty{font-size:14px}
.cmb2c-portal .cmb2c-vat-label{display:block;text-align:left;float:none;width:auto;font-size:13px;font-weight:600;margin:0 0 6px}
.cmb2c-portal .cmb2c-account-type input[type=text],.cmb2c-portal .cmb2c-account-type select{font-size:13.5px;padding:9px 12px;height:auto;line-height:1.4;border:1px solid var(--cmb2c-border);border-radius:8px;background:#fff;color:var(--cmb2c-text);width:100%;max-width:100%}
.cmb2c-portal .cmb2c-account-type .cmb2c-vat-in select{width:auto;min-width:80px}
.cmb2c-portal .cmb2c-newsletter .cmb2c-check span{font-size:13px}
.cmb2c-portal .cmb2c-prefs textarea{font-size:13.5px;width:100%}
.cmb2c-portal .cmb2c-content fieldset.cmb2c-account-type>legend{font-size:14.5px !important;line-height:1.4}

/* Container-width fallbacks for the inner layout (a narrow theme column on a
   wide screen never hits the viewport media query above). */
.cmb2c-auth-invite{flex-wrap:wrap}
.cmb2c-auth-invite-body{flex:1 1 220px}
@supports (container-type:inline-size){
	@container (max-width:820px){
		.cmb2c-auth-form{padding:26px 22px 30px}
		.cmb2c-auth-brand{padding:26px 22px;gap:18px}
		.cmb2c-pick{grid-template-columns:1fr}
		.cmb2c-row-2,.cmb2c-row-3{grid-template-columns:1fr}
		.cmb2c-vat-in{grid-template-columns:80px minmax(0,1fr)}
		.cmb2c-vat-in .cmb2c-btn{grid-column:1/-1}
		.cmb2c-auth-actions{flex-direction:column-reverse;align-items:stretch}
		.cmb2c-auth-actions-right{margin-left:0}
		.cmb2c-auth-actions-right .cmb2c-btn{flex:1}
		.cmb2c-auth-head-cta{width:100%;margin-top:4px}
		.cmb2c-auth .cmb2c-auth-head-cta .cmb2c-btn{flex:1;justify-content:center}
		.cmb2c-auth-invite{flex-direction:column;align-items:stretch;text-align:center;gap:14px}
		.cmb2c-auth-invite-ic{flex:0 0 auto;width:54px;margin:0 auto}
		.cmb2c-auth-invite .cmb2c-btn{justify-content:center}
	}
}

/* Themes box the logged-out account page into a narrow centred card — Astra:
   .woocommerce-account .entry-content .woocommerce{max-width:540px;border;padding}.
   Our screen is its own card, so undo the theme's wrapper on auth screens. */
body.cmb2c-auth-screen.woocommerce-account .entry-content .woocommerce,
body.cmb2c-auth-screen.woocommerce-account .woocommerce,
body.cmb2c-auth-screen .woocommerce:has(> .cmb2c-auth){max-width:none;width:auto;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
/* Invite panel in the stacked layout: no empty column-height from flex-basis. */
@supports (container-type:inline-size){
	@container (max-width:820px){
		.cmb2c-auth-invite-body{flex:0 0 auto}
	}
}
@media (max-width:900px){.cmb2c-auth-invite-body{flex:0 0 auto}}
.cmb2c-auth-foot{display:flex;flex-direction:column;gap:4px}
.cmb2c-auth-foot-contact{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12.5px}
.cmb2c-auth-foot-contact a{white-space:nowrap}
