/*
 * This is needed because WooCommerce still forces two different styles
 * for the on sales badge, one for the archive and one for the single product.
 */
.woocommerce span.onsale,
.wc-block-grid .wc-block-grid__product-onsale,
.wc-block-grid__product-image .wc-block-grid__product-onsale {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
	border-radius: 100%;
	border: none;
	height: 3.7rem;
	width: 3.7rem;
	font-size: 1rem;
	text-transform: capitalize;
	text-align: center;
	line-height: 3.236;
}

/**
* This is needed to overrride the color of the WooCommerce "in stock" message
*/
.woocommerce div.product .stock {
	color:var(--wp--preset--color--primary);
}

/* ============================================================
   MY ACCOUNT — Design Tokens
   All brand colours derive from Elementor Global Colours.
   Change once in Elementor > Site Settings > Global Colours
   and every My Account component updates automatically.

   --b2b-ma-brand       Primary brand colour (Elementor primary)
   --b2b-ma-brand-dark  Darker tint used for hover states (~18% darker)
   --b2b-ma-brand-bg    Very light primary tint for active/selected backgrounds
   --b2b-ma-brand-ring  Ultra-light primary tint for focus rings
   --b2b-ma-text        Main heading / body text (Elementor dark)
   ============================================================ */

body {
	--b2b-ma-brand:      var(--e-global-color-primary);
	/* Fallbacks for browsers without color-mix() (pre-Chrome 111 / Firefox 113 / Safari 16.2) */
	--b2b-ma-brand-dark: var(--e-global-color-primary);
	--b2b-ma-brand-bg:   #f5f5f5;
	--b2b-ma-brand-ring: #ebebeb;
	--b2b-ma-text:       var(--e-global-color-text, #1d1d1d);
}

@supports (color: color-mix(in srgb, red 80%, blue)) {
	body {
		--b2b-ma-brand-dark: color-mix(in srgb, var(--e-global-color-primary) 82%, #000);
		--b2b-ma-brand-bg:   color-mix(in srgb, var(--e-global-color-primary)  5%, #fff);
		--b2b-ma-brand-ring: color-mix(in srgb, var(--e-global-color-primary)  8%, #fff);
	}
}

/* ============================================================
   MY ACCOUNT — Layout Shell
   ============================================================ */

/* App Bar */
.wc-account-bar {
	background: var(--e-global-color-primary) !important;
	color: #fff !important;
	padding: 14px 24px !important;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	border-radius: 10px 10px 0 0;
	min-height: 52px;
}

.wc-account-bar__left {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wc-account-bar__company {
	font-weight: 700;
	font-size: 15px;
}

.wc-account-bar__tier {
	font-size: 11px;
	opacity: 0.72;
}

.wc-account-bar__right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wc-account-bar__email {
	font-size: 12px;
	opacity: 0.8;
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wc-account-bar__avatar {
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	flex-shrink: 0;
}

.wc-account-bar__logout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: rgba(255, 255, 255, 0.72);
	border-radius: 6px;
	text-decoration: none;
	flex-shrink: 0;
	transition: color 0.12s, background 0.12s;
}

.wc-account-bar__logout:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

.wc-account-bar__logout svg {
	width: 16px;
	height: 16px;
}

/* ============================================================
   MY ACCOUNT — Logout Confirmation Dialog
   ============================================================ */

#b2b-logout-dialog {
	border: none;
	border-radius: 12px;
	padding: 0;
	width: 340px;
	max-width: 92vw;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.1);
}

#b2b-logout-dialog::backdrop {
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(2px);
}

.b2b-logout-dialog__content {
	padding: 32px 28px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.b2b-logout-dialog__icon {
	width: 52px;
	height: 52px;
	background: var(--b2b-ma-brand-bg);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
	color: var(--b2b-ma-brand);
}

.b2b-logout-dialog__icon svg {
	width: 22px;
	height: 22px;
}

.b2b-logout-dialog__content h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--b2b-ma-text);
	margin: 0;
}

.b2b-logout-dialog__content p {
	font-size: 14px;
	color: #888;
	margin: 0;
}

.b2b-logout-dialog__actions {
	display: flex;
	gap: 10px;
	margin-top: 8px;
	width: 100%;
}

/* ID prefix beats Elementor/WooCommerce global button rules */
#b2b-logout-dialog .b2b-logout-dialog__cancel {
	flex: 1;
	padding: 10px 0;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	cursor: pointer;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	outline: none;
	transition: background 0.12s, border-color 0.12s;
}

#b2b-logout-dialog .b2b-logout-dialog__cancel:hover {
	background: #f5f5f5;
	border-color: #ccc;
	color: #555;
}

#b2b-logout-dialog .b2b-logout-dialog__confirm {
	flex: 1;
	padding: 10px 0;
	border: none;
	border-radius: 8px;
	background: var(--b2b-ma-brand);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	transition: background 0.12s;
}

#b2b-logout-dialog .b2b-logout-dialog__confirm:hover {
	background: var(--b2b-ma-brand-dark);
	color: #fff;
	text-decoration: none;
}

/* Account body (sidebar + content) */
.wc-account-body {
	display: flex;
	background: #fff;
	border-radius: 0 0 10px 10px;
	border: 1px solid #e8e8e8;
	border-top: none;
	overflow: hidden;
	min-height: 520px;
}

/* Sidebar nav */
.woocommerce-MyAccount-navigation {
	width: 180px !important;
	float: none !important;
	border-right: 1px solid #eee;
	padding: 20px 0;
	display: flex !important;
	flex-direction: column;
	flex-shrink: 0;
	background: #fff;
}

.woocommerce-MyAccount-navigation::before {
	content: 'MENU';
	font-size: 10px;
	letter-spacing: 1.3px;
	color: #c0c0c0;
	padding: 0 18px;
	margin-bottom: 8px;
	display: block;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 18px;
	font-size: 13px;
	color: #666;
	text-decoration: none;
	border-left: 2px solid transparent;
	transition: color 0.12s, background 0.12s, border-color 0.12s;
	line-height: 1;
}

.woocommerce-MyAccount-navigation li a svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.woocommerce-MyAccount-navigation li a:hover {
	color: var(--b2b-ma-text);
	background: #fafafa;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li.is-active a {
	color: var(--e-global-color-primary);
	font-weight: 600;
	border-left-color: var(--e-global-color-primary);
	background: var(--b2b-ma-brand-bg);
	text-decoration: none;
}

/* Logout at bottom */
.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: auto !important;
	position: static !important;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout::before {
	content: '';
	display: block;
	border-top: 1px solid #eee;
	margin: 6px 0;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--e-global-color-primary);
	font-size: 12px;
	background: transparent !important;
	border-left-color: transparent !important;
	font-weight: 400;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: var(--b2b-ma-brand-bg) !important;
}

/* Content panel */
.woocommerce-MyAccount-content {
	flex: 1 !important;
	float: none !important;
	width: auto !important;
	padding: 24px 28px;
	min-width: 0;
}

/* ============================================================
   MY ACCOUNT — Dashboard
   ============================================================ */

.wc-dashboard-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 14px;
	border-bottom: 1px solid #eee;
	margin-bottom: 20px;
}

.wc-dashboard-header__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--b2b-ma-text);
}

.wc-dashboard-header__meta {
	font-size: 12px;
	color: #aaa;
}

.wc-admin-message {
	background: #fffdf0;
	border: 1px solid #ede8c0;
	border-left: 3px solid #d4b84a;
	border-radius: 6px;
	padding: 11px 15px;
	margin-bottom: 20px;
	font-size: 12.5px;
	color: #6b5a18;
	line-height: 1.5;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.wc-admin-message svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: #d4b84a;
	width: 16px;
	height: 16px;
}

.wc-stat-strip {
	display: flex;
	gap: 14px;
	margin-bottom: 24px;
}

.wc-stat {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 14px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wc-stat__label {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #aaa;
	display: flex;
	align-items: center;
	gap: 5px;
}

.wc-stat__label svg {
	width: 12px;
	height: 12px;
}

.wc-stat__value {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
}

.wc-stat__value--red   { color: var(--e-global-color-primary); }
.wc-stat__value--amber { color: #e67e22; }
.wc-stat__value--green { color: #27ae60; }

.wc-stat__sub {
	font-size: 11px;
	color: #ccc;
}

.wc-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.wc-section-header__title {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--b2b-ma-text);
}

.wc-section-header__link {
	font-size: 12px;
	color: var(--e-global-color-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.wc-section-header__link svg {
	width: 12px;
	height: 12px;
}

.wc-section-header__link:hover {
	text-decoration: underline;
}

.wc-recent-orders-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #eee;
}

.wc-recent-orders-table thead tr {
	background: var(--e-global-color-primary);
}

.wc-recent-orders-table thead th {
	padding: 9px 14px;
	text-align: left;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
	border: none !important;
	background: transparent !important;
}

.wc-recent-orders-table tbody tr {
	border-bottom: 1px solid #f2f2f2;
}

.wc-recent-orders-table tbody tr:last-child {
	border-bottom: none;
}

.wc-recent-orders-table tbody tr:hover {
	background: #fafafa;
}

.wc-recent-orders-table td {
	padding: 10px 14px;
	font-size: 13px;
	color: #444;
	vertical-align: middle;
	border: none !important;
	background: transparent !important;
}

.wc-recent-orders-table td.order-num {
	font-weight: 600;
	color: var(--b2b-ma-text);
}

.wc-recent-orders-table td.order-ordered-by {
	font-size: 12px;
	color: #666;
}

.wc-recent-orders-table td.order-action {
	white-space: nowrap;
}

.wc-recent-orders-table td.order-action a {
	color: var(--e-global-color-primary);
	font-size: 12px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.wc-recent-orders-table td.order-action svg {
	width: 12px;
	height: 12px;
}

.wc-recent-orders-table td.order-action .order-action__reorder {
	margin-left: 10px;
	padding: 3px 10px;
	background: var(--e-global-color-primary);
	color: #fff;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: background 0.15s;
}

.wc-recent-orders-table td.order-action .order-action__reorder:hover {
	background: var(--b2b-ma-brand-dark);
	color: #fff;
}

.wc-recent-orders-table td.order-action .order-action__reorder svg {
	width: 11px;
	height: 11px;
}

/* ============================================================
   MY ACCOUNT — Account Details
   ============================================================ */

.wc-account-cols {
	display: flex;
	gap: 32px;
}

.wc-account-col {
	flex: 1;
	min-width: 0;
}

.wc-section-card {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
}

.wc-section-card__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 18px;
	background: #fafafa;
	border-bottom: 1px solid #eee;
	font-size: 13px;
	font-weight: 600;
	color: var(--b2b-ma-text);
}

.wc-section-card__header svg {
	width: 15px;
	height: 15px;
	color: var(--e-global-color-primary);
	flex-shrink: 0;
}

.wc-section-card__body {
	padding: 18px;
}

.wc-field-row {
	display: flex;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
}

.wc-field-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.wc-field-row__label {
	width: 110px;
	flex-shrink: 0;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: #aaa;
	font-weight: 500;
}

.wc-field-row__value {
	flex: 1;
	font-size: 13.5px;
	color: var(--b2b-ma-text);
	font-weight: 500;
	word-break: break-all;
}

.wc-field-row__lock {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 10px;
	color: #ccc;
	margin-left: 8px;
	flex-shrink: 0;
}

.wc-field-row__lock svg {
	width: 11px;
	height: 11px;
}

/* Password form */
.woocommerce-EditAccountForm .wc-form-group {
	margin-bottom: 16px;
}

.woocommerce-EditAccountForm .wc-form-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: #888;
	font-weight: 500;
	margin-bottom: 6px;
}

.woocommerce-EditAccountForm .wc-form-input-wrap {
	position: relative;
}

.wc-form-label .wc-input-eye {
	display: none;
}

.woocommerce-EditAccountForm .woocommerce-Input--password {
	width: 100%;
	padding: 9px 40px 9px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 13px;
	color: var(--b2b-ma-text);
	background: #fff;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	font-family: inherit;
	box-sizing: border-box;
}

.woocommerce-EditAccountForm .woocommerce-Input--password:focus {
	border-color: var(--e-global-color-primary);
	box-shadow: 0 0 0 3px var(--b2b-ma-brand-ring);
}

.wc-input-eye {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #bbb;
	cursor: pointer;
	display: flex;
	align-items: center;
	background: none;
	border: none;
	padding: 0;
}

.wc-input-eye svg {
	width: 15px;
	height: 15px;
}

.wc-form-hint {
	font-size: 11px;
	color: #bbb;
	margin-top: 5px;
}

.woocommerce-EditAccountForm .woocommerce-Button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 20px;
	background: var(--e-global-color-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	font-family: inherit;
}

.woocommerce-EditAccountForm .woocommerce-Button:hover {
	background: var(--b2b-ma-brand-dark);
}

.woocommerce-EditAccountForm .woocommerce-Button svg {
	width: 14px;
	height: 14px;
}

/* ============================================================
   MY ACCOUNT — Order Status Badges (moved from style.css)
   ============================================================ */

.order-status {
	display: inline-block;
	border-radius: 0.5rem;
	line-height: 20px;
	padding: 4px 10px;
}

.order-status.status-completed {
	border: 1px solid #366dad;
	background: #e2eefb;
	color: #366dad;
}

.order-status.status-pending-approval {
	border: 1px solid #dbdbdb;
	background: #f3f3f3;
	color: #939393;
}

.order-status.status-processing {
	border: 1px solid #c6ca55;
	background: #faffb0;
	color: #a09c15;
}

.order-status.status-pending {
	border: 1px solid #e5b17c;
	background: #ffecd0;
	color: #c0843f;
}

.order-status.status-cancelled {
	border: 1px solid #e77d7d;
	background: #ffe3e3;
	color: #ce4040;
}

.order-status.status-preseason {
	border: 1px solid #dca8f4;
	background: #fbe2ff;
	color: #b55ebd;
}

/* ============================================================
   MY ACCOUNT — Responsive (≤768px)
   ============================================================ */

@media (max-width: 768px) {
	.wc-account-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.wc-account-body {
		flex-direction: column;
	}

	.woocommerce-MyAccount-navigation {
		width: 100% !important;
		border-right: none;
		border-bottom: 1px solid #eee;
		padding: 12px 0;
		overflow-x: auto;
	}

	.woocommerce-MyAccount-navigation::before {
		display: none;
	}

	.woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		padding: 0 12px;
		gap: 6px;
	}

	.woocommerce-MyAccount-navigation li a {
		white-space: nowrap;
		border-left: none;
		border-bottom: 2px solid transparent;
		padding: 6px 12px;
		border-radius: 6px;
		background: #f5f5f5;
	}

	.woocommerce-MyAccount-navigation li.is-active a {
		background: var(--b2b-ma-brand-bg);
		border-bottom: none;
	}

	.woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 0 !important;
	}

	.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout::before {
		display: none;
	}

	.woocommerce-MyAccount-content {
		padding: 16px;
	}

	.wc-account-cols {
		flex-direction: column;
	}

	.wc-stat-strip {
		flex-wrap: wrap;
	}

	.wc-stat {
		flex: 1 1 calc(50% - 7px);
	}
}

/* ============================================================
   MY ACCOUNT — General content colour reset
   Elementor global typography applies brand red to headings.
   These rules restore neutral colours inside the account panel.
   ============================================================ */

.woocommerce-MyAccount-content h1,
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-MyAccount-content h4 {
	color: var(--b2b-ma-text);
}

.woocommerce-MyAccount-content address {
	font-style: normal;
	color: #444;
	line-height: 1.6;
}

/* ============================================================
   MY ACCOUNT — Addresses
   ============================================================ */

.wc-address-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 28px;
}

.wc-address-card .wc-section-card__header {
	gap: 8px;
}

.wc-address-card__edit {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: #aaa;
	text-decoration: none;
	font-weight: 400;
}

.wc-address-card__edit svg {
	width: 12px;
	height: 12px;
}

.wc-address-card__edit:hover {
	color: var(--e-global-color-primary);
}

.wc-address-card__address {
	font-style: normal;
	font-size: 13.5px;
	color: var(--b2b-ma-text);
	line-height: 1.7;
}

.wc-address-card__empty {
	font-size: 13px;
	color: #aaa;
	margin-bottom: 12px;
}

.wc-address-card__add-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--e-global-color-primary);
	text-decoration: none;
	border: 1px solid var(--e-global-color-primary);
	border-radius: 4px;
	padding: 4px 12px;
	transition: background 0.15s, color 0.15s;
}

.wc-address-card__add-btn:hover {
	background: var(--e-global-color-primary);
	color: #fff;
}

.wc-address-card__add-btn svg {
	width: 12px;
	height: 12px;
}

/* DCJ shipping addresses section */
.dcj-wcma-addresses {
	margin-bottom: 20px;
}

.dcj-wcma-addresses h3 {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--b2b-ma-text) !important;
	margin-bottom: 12px;
}

.dcj-wcma-addresses address {
	display: inline-block;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 10px 14px;
	margin: 0 8px 8px 0;
	font-style: normal;
	font-size: 13px;
	color: #444;
	line-height: 1.6;
	vertical-align: top;
}

.dcj-wcma-addresses address.non-exempt {
	border-color: #f5d5a8;
	background: #ffecd0;
}

.wc-address-exempt-notice {
	font-size: 12px;
	color: #c0843f;
	background: #fff8f0;
	border: 1px solid #f5d5a8;
	border-left: 3px solid #e67e22;
	border-radius: 6px;
	padding: 10px 14px;
	margin-top: 4px;
	margin-bottom: 20px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.wc-address-exempt-notice svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* ============================================================
   MY ACCOUNT — Shipping Addresses (B2BDM Address Book)
   ============================================================ */

.wc-shipping-addresses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
	margin-top: 14px;
}

.wc-shipping-address-card__label {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wc-shipping-address-card--default .wc-section-card__header {
	border-left: 3px solid var(--b2b-ma-brand);
	padding-left: 15px;
}

.wc-shipping-address-card--non-exempt .wc-section-card__header {
	border-left: 3px solid #e67e22;
	padding-left: 15px;
}

/* Badges */
.b2b-badge {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 20px;
	flex-shrink: 0;
	line-height: 1.4;
}

.b2b-badge--primary {
	background: var(--b2b-ma-brand-bg);
	color: var(--b2b-ma-brand);
	border: 1px solid var(--b2b-ma-brand);
}

.b2b-badge--warning {
	background: #fff8f0;
	color: #c0843f;
	border: 1px solid #f5d5a8;
}

/* Ship-To ID / Phone meta rows */
.wc-address-meta {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	padding: 6px 0;
	border-top: 1px solid #f5f5f5;
	font-size: 12px;
}

.wc-address-meta:first-of-type {
	margin-top: 10px;
}

.wc-address-meta__label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #aaa;
	font-weight: 500;
	flex-shrink: 0;
	min-width: 64px;
}

.wc-address-meta__value {
	color: var(--b2b-ma-text);
	font-weight: 500;
	font-size: 12px;
	font-family: ui-monospace, monospace;
	word-break: break-all;
}

@media (max-width: 768px) {
	.wc-shipping-addresses-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   MY ACCOUNT — Orders table action buttons
   ============================================================ */

/* "View" — text link style */
.wc-order-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	padding: 4px 12px;
	border-radius: 4px;
	border: 1px solid var(--e-global-color-primary);
	color: var(--e-global-color-primary);
	background: transparent;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
	line-height: 1.4;
}

.wc-order-btn:hover {
	background: var(--e-global-color-primary);
	color: #fff;
}

/* "Add Items To Cart" — filled brand red */
.wc-order-btn.order-action__reorder {
	background: var(--e-global-color-primary);
	color: #fff;
	border-color: var(--e-global-color-primary);
}

.wc-order-btn.order-action__reorder:hover {
	background: var(--b2b-ma-brand-dark);
	border-color: var(--b2b-ma-brand-dark);
}

.order-action {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

/* Pagination */
.wc-orders-pagination {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.wc-orders-pagination__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--e-global-color-primary);
	text-decoration: none;
	border: 1px solid var(--e-global-color-primary);
	border-radius: 4px;
	padding: 5px 14px;
	transition: background 0.15s, color 0.15s;
}

.wc-orders-pagination__btn:hover {
	background: var(--e-global-color-primary);
	color: #fff;
}

.wc-orders-pagination__btn svg {
	width: 13px;
	height: 13px;
}

@media (max-width: 768px) {
	.wc-address-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   MY ACCOUNT — Order View
   ============================================================ */

/* Header row: order # + status badge + date */
.wc-order-view-header {
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.wc-order-view-header__left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex: 1;
}

.wc-order-back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #aaa;
	text-decoration: none;
	transition: color 0.12s;
}

.wc-order-back-link:hover {
	color: var(--e-global-color-primary);
}

.wc-order-back-link svg {
	width: 13px;
	height: 13px;
}

.wc-order-view-header .wc-dashboard-header__title {
	margin-right: 4px;
}

/* "Add Items To Cart" button rendered by wbc_add_duplicate_order_button */
.duplicate-order {
	display: block;
	text-align: right;
	margin-bottom: 14px;
}

.duplicate-order a.button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 4px;
	background: var(--e-global-color-primary);
	color: #fff;
	border-color: var(--e-global-color-primary);
	text-decoration: none;
	min-height: unset;
	line-height: 1.4;
	transition: background 0.15s;
}

.duplicate-order a.button:hover {
	background: var(--b2b-ma-brand-dark) !important;
	border-color: var(--b2b-ma-brand-dark) !important;
	color: #fff !important;
}

.woocommerce-order-details {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* "Order details" section heading */
.woocommerce-order-details__title {
	font-size: 15px !important;
	font-weight: 600 !important;
	color: var(--b2b-ma-text) !important;
	margin: 0 0 12px !important;
}

/* tfoot: row labels (Subtotal, Shipping, Total…) */
.woocommerce-table--order-details tfoot th {
	color: #555 !important;
	font-weight: 500;
	text-align: left;
}

/* tfoot: section dividers ("Shipping Details", "Additional Details") */
.b2b-tfoot-section th {
	color: #aaa !important;
	font-size: 10.5px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.7px !important;
	font-weight: 500 !important;
	padding-top: 16px !important;
	border-top: 1px solid #eee !important;
}

/* tfoot: grand total row */
.b2b-tfoot-grand th,
.b2b-tfoot-grand td {
	font-weight: 700 !important;
	color: var(--b2b-ma-text) !important;
	font-size: 14px;
	padding-top: 12px !important;
	border-top: 1px solid #eee !important;
}

/* Product quantity indicator */
.product-quantity {
	color: #888 !important;
	font-weight: 400 !important;
	font-size: 12px;
}

/* Product meta (SKU, variant attributes) */
.wc-item-meta,
.wc-item-meta li,
.wc-item-meta .wc-item-meta-label {
	color: #aaa !important;
	font-size: 11.5px !important;
}

/* Order update notes */
.wc-order-notes {
	margin-bottom: 20px;
}

.wc-order-notes__title {
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: var(--b2b-ma-text) !important;
	margin-bottom: 8px !important;
}

/* Billing / Shipping address section */
.woocommerce-customer-details {
	margin-top: 24px;
}

.woocommerce-columns--addresses {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 0 !important;
}

.woocommerce-column {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
}

.woocommerce-column__title {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--b2b-ma-text) !important;
	margin: 0 !important;
	padding: 12px 16px !important;
	background: #fafafa;
	border-bottom: 1px solid #eee;
}

.woocommerce-customer-details address {
	padding: 14px 16px !important;
	font-style: normal !important;
	font-size: 13.5px !important;
	color: var(--b2b-ma-text) !important;
	line-height: 1.7 !important;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
	color: #666;
	font-size: 12.5px;
	margin: 0;
}

@media (max-width: 768px) {
	.woocommerce-columns--addresses {
		grid-template-columns: 1fr !important;
	}
}

/* ============================================================
   WCMCA — WooCommerce Multiple Customer Addresses
   Styles the plugin's native shipping address management UI
   to match the portal design system.
   ============================================================ */

/* Section headings */
h2.wcmca_additional_addresses_list_title {
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: var(--b2b-ma-text) !important;
	margin: 24px 0 12px !important;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

#wcmca_divider {
	display: none;
}

/* Address grid */
.woocommerce-MyAccount-content .col2-set.addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.woocommerce-MyAccount-content .col2-set.addresses .address {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

/* Card header — address name + actions */
.woocommerce-MyAccount-content .wcmcam_address_block_title {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: #fafafa;
	border-bottom: 1px solid #eee;
	flex-wrap: wrap;
}

.woocommerce-MyAccount-content h2.wcmca_address_title,
.woocommerce-MyAccount-content h3.wcmca_address_title,
.woocommerce-MyAccount-content h4.wcmca_address_title {
	font-size: 12px !important;
	font-weight: 600 !important;
	color: var(--b2b-ma-text) !important;
	margin: 0 !important;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
}

.woocommerce-MyAccount-content .wcmca_address_title_text_content {
	font-size: 12px;
	font-weight: 600;
	color: var(--b2b-ma-text);
}

/* Inline action links */
.woocommerce-MyAccount-content .wcmca_edit_address_button,
.woocommerce-MyAccount-content .wcmca_delete_address_button,
.woocommerce-MyAccount-content .wcmca_duplicate_address_button {
	font-size: 11px !important;
	color: #aaa !important;
	text-decoration: none !important;
}

.woocommerce-MyAccount-content .wcmca_edit_address_button:hover {
	color: var(--e-global-color-primary) !important;
}

.woocommerce-MyAccount-content .wcmca_delete_address_button:hover {
	color: var(--built2buy--global-danger) !important;
}

.woocommerce-MyAccount-content .wcmca_duplicate_address_button:hover {
	color: var(--b2b-ma-text) !important;
}

.woocommerce-MyAccount-content .class_action_sparator {
	color: #ddd;
	font-size: 11px;
}

/* Default address badge */
.woocommerce-MyAccount-content .wcmca_default_address_badge {
	font-size: 10px !important;
	border-radius: 20px !important;
	padding: 2px 8px !important;
	line-height: 1.4 !important;
}

/* Address content */
.woocommerce-MyAccount-content .wcmca_address_container {
	padding: 12px 14px;
	margin: 0;
	font-style: normal;
	font-size: 13px;
	background: #fff;
	color: #444;
	line-height: 1.6;
}

/* Bulk delete button */
.woocommerce-MyAccount-content .wcmca_action_button_container {
	margin-bottom: 10px;
}

.woocommerce-MyAccount-content .wcmca_bulk_delete_button {
	font-size: 11px !important;
	padding: 4px 10px !important;
	border-radius: 4px !important;
	color: var(--built2buy--global-danger) !important;
	border-color: var(--built2buy--global-danger) !important;
	background: transparent !important;
}

@media (max-width: 768px) {
	.woocommerce-MyAccount-content .col2-set.addresses {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   LOGIN PAGE — Split panel, option L
   Left: brand colour, logo pill top-left, bold copy bottom.
   Right: white form panel.
   ============================================================ */

.b2b-login-page {
	display: flex;
	min-height: 50vh;
}

/* ---- Left: brand panel ---- */
.b2b-login-brand {
	width: 42%;
	flex-shrink: 0;
	background: var(--e-global-color-primary);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 32px 36px 48px;
	border-radius: 10px;
}

/* Logo pill — small white rounded pill, top-left */
.b2b-login-brand__logo-pill {
	display: inline-flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	padding: 8px 14px;
	align-self: flex-start;
}

.b2b-login-brand__logo-pill a {
	display: block;
	line-height: 0;
}

.b2b-login-brand__logo-pill img {
	max-width: 120px;
	max-height: 40px;
	width: auto;
	height: auto;
}

.b2b-login-brand__site-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--b2b-ma-text);
	white-space: nowrap;
}

/* Bold copy — anchored to bottom of panel */
.b2b-login-brand__copy h1 {
	font-size: 40px;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
	letter-spacing: -0.5px;
	margin: 0 0 12px;
}

.b2b-login-brand__copy p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	line-height: 1.5;
}

/* ---- Right: form panel ---- */
.b2b-login-forms {
	flex: 1;
	background: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 56px 52px;
	overflow-y: auto;
	min-width: 0;
}

.b2b-login-section {
	width: 100%;
}

.b2b-login-section__heading {
	font-size: 16px;
	font-weight: 600;
	color: var(--b2b-ma-text);
	margin: 0 0 16px;
}

/* Labels */
.b2b-login-page .woocommerce-form-row label {
	font-size: 12px;
	font-weight: 600;
	color: #555;
	margin-bottom: 5px;
	display: block;
}

/* Inputs */
.b2b-login-page .woocommerce-Input--text {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #e0e0e0;
	border-radius: 7px;
	font-size: 14px;
	color: #1d1d1d;
	background: #fafafa;
	transition: border-color 0.12s, background 0.12s;
	outline: none;
	box-sizing: border-box;
}

.b2b-login-page .woocommerce-Input--text:focus {
	border-color: var(--e-global-color-primary);
	background: #fff;
}

/* Actions row: remember-me left, Sign in right */
.b2b-login-form-row--actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
}

.b2b-login-form-row--actions .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #888;
	cursor: pointer;
	white-space: nowrap;
}

/* Primary button */
.b2b-login-page .b2b-btn-primary {
	padding: 10px 26px;
	background: var(--e-global-color-primary);
	color: #fff;
	border: none;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s;
	white-space: nowrap;
}

.b2b-login-page .b2b-btn-primary:hover {
	background: var(--b2b-ma-brand-dark);
}

/* Forgot password */
.b2b-login-page .woocommerce-LostPassword {
	margin: 10px 0 0;
	font-size: 12px;
	text-align: right;
}

.b2b-login-page .woocommerce-LostPassword a {
	color: #aaa;
	text-decoration: none;
}

.b2b-login-page .woocommerce-LostPassword a:hover {
	color: var(--e-global-color-primary);
}

/* Divider between login and register */
.b2b-login-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 28px 0;
	width: 100%;
	max-width: 380px;
	color: #bbb;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.b2b-login-divider::before,
.b2b-login-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e8e8e8;
}

/* Register section */
.b2b-login-section--register {
	width: 100%;
	max-width: 380px;
}

/* Outlined button (Create account) */
.b2b-login-page .b2b-btn-outline {
	padding: 9px 22px;
	background: transparent;
	color: var(--e-global-color-primary);
	border: 1.5px solid var(--e-global-color-primary);
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s;
}

.b2b-login-page .b2b-btn-outline:hover {
	background: var(--b2b-ma-brand-bg);
}

/* Password-will-be-emailed hint */
.b2b-login-hint {
	font-size: 12px;
	color: #888;
	margin: 0 0 12px;
	line-height: 1.5;
}

/* WooCommerce notices */
.b2b-login-forms .woocommerce-error,
.b2b-login-forms .woocommerce-message,
.b2b-login-forms .woocommerce-info {
	border-radius: 7px;
	font-size: 13px;
	margin-bottom: 16px;
	list-style: none;
	padding: 10px 14px;
	max-width: 380px;
	box-sizing: border-box;
}

/* Mobile: stack vertically, brand panel collapses to a header */
@media (max-width: 680px) {
	.b2b-login-page {
		flex-direction: column;
	}

	.b2b-login-brand {
		width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 20px 24px;
		gap: 16px;
	}

	.b2b-login-brand__copy h1 {
		font-size: 22px;
		margin: 0;
	}

	.b2b-login-brand__copy p {
		display: none;
	}

	.b2b-login-forms {
		padding: 32px 24px;
	}
}
