/**
 * File:    assets/css/front.css
 * Purpose: Front-end styling for the Rapidz B2B Plugin.
 *            1. The trade application card ([rzb2b_trade_application]).
 *            2. The My Account trade pages (Trade Account + Team / Logins).
 *          Tuned to sit cleanly inside the Albahar Al-Ameeq (Liqui) theme.
 *
 * @package Rapidz_B2B
 */

/* -------------------------------------------------------------------------
 *  Design tokens — on :root so they are available to EVERY plugin element,
 *  including the "Add to quote" button and dual price that render on
 *  product cards (outside the .rzb2b-apply / .rzb2b-account wrappers).
 * ---------------------------------------------------------------------- */
:root {
	--rzb2b-navy:      #15294d;
	--rzb2b-navy-2:    #0f1d38;
	--rzb2b-navy-soft: #1c3563;
	--rzb2b-gold:      #c8a04e;
	--rzb2b-gold-dark: #b78f3f;
	--rzb2b-ink:       #1f2733;
	--rzb2b-muted:     #6b7686;
	--rzb2b-border:    #dde3ec;
	--rzb2b-field-bg:  #ffffff;
	--rzb2b-radius:    14px;

	/* Liquid-glass — pulls the Liqui theme tokens, with solid fallbacks
	   so the plugin still looks fine on a non-Liqui theme. */
	--rzb2b-glass:        var(--glass-bg-strong, rgba(255, 255, 255, 0.92));
	--rzb2b-glass-tint:   var(--glass-tint, rgba(244, 245, 247, 0.85));
	--rzb2b-glass-blur:   var(--glass-blur, 18px);
	--rzb2b-glass-border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.7));
}

.rzb2b-apply,
.rzb2b-account {
	color: var(--rzb2b-ink);
	font-family: inherit;
	box-sizing: border-box;
}

.rzb2b-apply *,
.rzb2b-account * { box-sizing: border-box; }

.rzb2b-muted { color: var(--rzb2b-muted); }

/* =========================================================================
 *  1. APPLICATION CARD
 * ====================================================================== */
.rzb2b-apply {
	display: grid;
	grid-template-columns: 330px 1fr;
	max-width: 1000px;
	margin: 40px auto;
	background: var(--rzb2b-glass);
	-webkit-backdrop-filter: blur(var(--rzb2b-glass-blur)) saturate(140%);
	        backdrop-filter: blur(var(--rzb2b-glass-blur)) saturate(140%);
	border: var(--rzb2b-glass-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 32px 64px -28px rgba(15, 29, 56, .40),
	            0 2px 10px rgba(15, 29, 56, .08);
}

/* ---- Navy benefits aside ---- */
.rzb2b-apply__aside {
	background: linear-gradient(165deg, var(--rzb2b-navy-soft) 0%, var(--rzb2b-navy-2) 100%);
	color: #fff;
	padding: 44px 34px;
	position: relative;
}

.rzb2b-apply__aside::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(200, 160, 78, .14);
}

.rzb2b-apply__eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: .15em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--rzb2b-gold);
	margin-bottom: 14px;
}

.rzb2b-apply__title {
	font-size: 27px;
	line-height: 1.25;
	margin: 0 0 14px;
	color: #fff;
}

.rzb2b-apply__sub {
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .72);
	margin: 0 0 26px;
}

.rzb2b-apply__perks {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
}

.rzb2b-apply__perks li {
	position: relative;
	padding-inline-start: 30px;
	margin-bottom: 13px;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, .92);
}

.rzb2b-apply__perks li::before {
	content: "\2713";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--rzb2b-gold);
	color: var(--rzb2b-navy-2);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rzb2b-apply__aside-note {
	margin: 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 13px;
	color: rgba(255, 255, 255, .6);
}

/* ---- Main form panel ---- */
.rzb2b-apply__main { padding: 42px 40px; }

.rzb2b-fieldset {
	border: 0;
	margin: 0 0 26px;
	padding: 0;
}

.rzb2b-legend {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--rzb2b-navy);
	margin: 0 0 18px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--rzb2b-border);
}

.rzb2b-legend__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--rzb2b-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	flex: none;
}

/* ---- Field grid ---- */
.rzb2b-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}

.rzb2b-grid .rzb2b-field { margin: 0; }
.rzb2b-field--full { grid-column: 1 / -1; }

/* =========================================================================
 *  2. SHARED FORM ELEMENTS  (application + My Account)
 * ====================================================================== */
.rzb2b-field { margin: 0 0 16px; }

.rzb2b-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rzb2b-ink);
}

.rzb2b-field input[type="text"],
.rzb2b-field input[type="email"],
.rzb2b-field input[type="password"],
.rzb2b-field input[type="number"],
.rzb2b-field input[type="tel"],
.rzb2b-field input[type="file"],
.rzb2b-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--rzb2b-border);
	border-radius: 9px;
	font-size: 15px;
	background: var(--rzb2b-field-bg);
	color: var(--rzb2b-ink);
	font-family: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.rzb2b-field textarea { resize: vertical; min-height: 90px; }

.rzb2b-field input:focus,
.rzb2b-field textarea:focus {
	outline: none;
	border-color: var(--rzb2b-navy-soft);
	box-shadow: 0 0 0 3px rgba(28, 53, 99, .14);
}

.rzb2b-field input[type="file"] {
	padding: 9px 11px;
	background: #f6f8fb;
	cursor: pointer;
	font-size: 14px;
}

.rzb2b-field input[type="file"]::file-selector-button {
	margin-inline-end: 12px;
	border: 0;
	border-radius: 7px;
	background: var(--rzb2b-navy);
	color: #fff;
	padding: 8px 15px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.rzb2b-field input[type="file"]::file-selector-button:hover { background: var(--rzb2b-navy-soft); }

.rzb2b-field small {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	color: var(--rzb2b-muted);
}

.rzb2b-req { color: #d64545; }
.rzb2b-opt { color: var(--rzb2b-muted); font-weight: 400; font-size: 12px; }

/* ---- Buttons ---- */
.rzb2b-btn {
	display: inline-block;
	padding: 12px 26px;
	border: 0;
	border-radius: 9px;
	background: var(--rzb2b-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease;
}

.rzb2b-btn:hover,
.rzb2b-btn:focus { background: var(--rzb2b-navy-soft); color: #fff; }
.rzb2b-btn:active { transform: translateY(1px); }
.rzb2b-btn--lg { padding: 15px 36px; font-size: 15px; }

.rzb2b-link-danger {
	border: 0;
	background: none;
	padding: 0;
	color: #d64545;
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
}

/* ---- Application submit row ---- */
.rzb2b-apply__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.rzb2b-apply__note {
	flex: 1;
	min-width: 200px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rzb2b-muted);
}

/* ---- Success state ---- */
.rzb2b-apply-done {
	text-align: center;
	padding: 36px 12px;
}

.rzb2b-apply-done__tick {
	width: 66px;
	height: 66px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #e7f6ee;
	color: #1f9d55;
	font-size: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rzb2b-apply-done h3 {
	margin: 0 0 8px;
	font-size: 21px;
	color: var(--rzb2b-navy);
}

.rzb2b-apply-done p {
	margin: 0 auto;
	max-width: 360px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--rzb2b-muted);
}

/* -------------------------------------------------------------------------
 *  Notices
 * ---------------------------------------------------------------------- */
.rzb2b-notice {
	border: 1px solid var(--rzb2b-border);
	border-inline-start-width: 4px;
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 0 20px;
	font-size: 14.5px;
	line-height: 1.55;
	background: #f7f9fc;
}

.rzb2b-notice strong { display: block; margin-bottom: 4px; }
.rzb2b-notice--success { border-inline-start-color: #1f9d55; background: #f0faf4; }
.rzb2b-notice--error   { border-inline-start-color: #d64545; background: #fdf3f3; }
.rzb2b-notice--warning { border-inline-start-color: #d99a00; background: #fdf8ec; }
.rzb2b-notice--info    { border-inline-start-color: var(--rzb2b-navy-soft); background: #eef2f9; }

/* =========================================================================
 *  2b. DUAL PRICE  (retail + trade price, shown to trade users)
 * ====================================================================== */
.rzb2b-dual {
	display: inline-flex;
	flex-direction: column;
	gap: 1px;
	line-height: 1.3;
}

.rzb2b-dual__lbl {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 700;
	color: #8a93a3;
}

.rzb2b-dual__retail {
	font-size: 12px;
	color: #8a93a3;
}

.rzb2b-dual__retail del { color: #8a93a3; text-decoration: line-through; }

.rzb2b-dual__trade {
	font-weight: 700;
	color: #15294d;
}

.rzb2b-cart-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	background: #eef2f9;
	color: #15294d;
	padding: 1px 8px;
	border-radius: 999px;
	margin-inline-start: 4px;
	vertical-align: middle;
}

/* =========================================================================
 *  2c. STAFF TIER-PRICE READOUT  (every tier's price — store staff only)
 * ====================================================================== */
.rzb2b-adminprice {
	display: block;
	margin-top: 8px;
	padding: 7px 10px 8px;
	border: 1px dashed #c9a24a;
	border-radius: 8px;
	background: rgba( 201, 162, 74, .08 );
	font-size: 12px;
	line-height: 1.5;
	text-align: start;
}
.rzb2b-adminprice__lbl {
	display: block;
	margin-bottom: 4px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #9a7b2e;
}
.rzb2b-adminprice__row {
	display: flex;
	justify-content: space-between;
	gap: 14px;
}
.rzb2b-adminprice__row + .rzb2b-adminprice__row { margin-top: 1px; }
.rzb2b-adminprice__tier { color: #6b7280; }
.rzb2b-adminprice__val  { font-weight: 700; color: #15294d; white-space: nowrap; }
.rzb2b-adminprice__val del { color: #8a93a3; font-weight: 400; }

.rzb2b-pay-note {
	background: #eef2f9;
	border-inline-start: 4px solid #15294d;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13.5px;
	line-height: 1.5;
	margin: 0 0 14px;
}

/* =========================================================================
 *  2c. QUOTE LIST + RFQ
 * ====================================================================== */
.rzb2b-quote-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 40px;
	margin-top: 8px;
	padding: 8px 18px;
	border: 1.5px solid var(--rzb2b-navy);
	border-radius: 999px;
	background: #fff;
	color: var(--rzb2b-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .12s ease;
}

.rzb2b-quote-btn::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background-color: currentColor;
	-webkit-mask: no-repeat center / contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/><path d="M9 13h6M9 17h4"/></svg>');
	        mask: no-repeat center / contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/><path d="M9 13h6M9 17h4"/></svg>');
}

.rzb2b-quote-btn:hover,
.rzb2b-quote-btn:focus {
	background: var(--rzb2b-navy);
	color: #fff;
	transform: translateY(-1px);
}

.rzb2b-quotebox {
	max-width: 1200px;
	margin: 32px auto;
	background: var(--rzb2b-glass);
	-webkit-backdrop-filter: blur(var(--rzb2b-glass-blur)) saturate(140%);
	        backdrop-filter: blur(var(--rzb2b-glass-blur)) saturate(140%);
	border: var(--rzb2b-glass-border);
	border-radius: 18px;
	box-shadow: 0 26px 54px -30px rgba(15, 29, 56, .38),
	            0 2px 8px rgba(15, 29, 56, .06);
	padding: 14px 42px 40px;
	box-sizing: border-box;
}

/* Card header band — bleeds to the card edges */
.rzb2b-quote-head {
	margin: -14px -42px 26px;
	padding: 30px 42px 26px;
	background: linear-gradient(165deg, #1c3563 0%, #0f1d38 100%);
	border-radius: 18px 18px 0 0;
}

.rzb2b-quote-eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: .15em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--rzb2b-gold);
	margin-bottom: 8px;
}

.rzb2b-quote-title {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.25;
	color: #fff;
}

.rzb2b-quote-intro {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .72);
}

.rzb2b-quote-empty {
	padding: 30px 24px;
	background: #f6f8fb;
	border: 1px solid var(--rzb2b-border);
	border-radius: var(--rzb2b-radius);
	text-align: center;
	color: var(--rzb2b-muted);
	font-size: 15px;
}

/* Single-column layout — shown when no products are selected yet, so the
   request form is still available as a direct enquiry. */
.rzb2b-quote-solo {
	max-width: 560px;
	margin: 0 auto;
}
.rzb2b-quote-solo .rzb2b-quote-empty {
	padding: 18px 22px;
	margin-bottom: 18px;
	font-size: 14px;
}

.rzb2b-quote-h {
	font-size: 17px;
	color: var(--rzb2b-navy);
	margin: 26px 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rzb2b-border);
}

/* Two-column layout: items | request form */
.rzb2b-quote-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 32px;
	align-items: start;
}

.rzb2b-quote-items .rzb2b-quote-h { margin-top: 6px; }

/* Item rows */
.rzb2b-qitem-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.rzb2b-qitem {
	display: grid;
	grid-template-columns: 64px 1fr 78px auto;
	gap: 14px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--rzb2b-border);
	border-radius: 12px;
	background: #fff;
}

.rzb2b-qitem__media {
	width: 64px;
	height: 64px;
	border: 1px solid var(--rzb2b-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rzb2b-qitem__media img { width: 100%; height: 100%; object-fit: contain; }

.rzb2b-qitem__info { min-width: 0; }
.rzb2b-qitem__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--rzb2b-ink);
	line-height: 1.35;
}
.rzb2b-qitem__sku {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--rzb2b-muted);
}

.rzb2b-qty {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--rzb2b-border);
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
	box-sizing: border-box;
	transition: opacity .15s ease;
}
.rzb2b-qty.is-saving { opacity: .55; }

.rzb2b-qitem__remove {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f1f4f9;
	color: var(--rzb2b-muted);
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.rzb2b-qitem__remove:hover { background: #d64545; color: #fff; }

/* Request-form sub-panel */
.rzb2b-quote-formcard {
	background: var(--rzb2b-glass-tint);
	-webkit-backdrop-filter: blur(var(--rzb2b-glass-blur));
	        backdrop-filter: blur(var(--rzb2b-glass-blur));
	border: var(--rzb2b-glass-border);
	border-radius: 14px;
	padding: 22px 24px 24px;
}
.rzb2b-quote-formcard .rzb2b-quote-h { margin-top: 0; }
.rzb2b-quote-form { max-width: none; }
.rzb2b-quote-form .rzb2b-field input,
.rzb2b-quote-form .rzb2b-field textarea { background: #fff; }

/* Button variants */
.rzb2b-btn--ghost {
	background: #fff;
	color: var(--rzb2b-navy);
	border: 1px solid var(--rzb2b-border);
}
.rzb2b-btn--ghost:hover,
.rzb2b-btn--ghost:focus { background: #f1f4f9; color: var(--rzb2b-navy); }
.rzb2b-btn--sm { padding: 9px 18px; font-size: 14px; }
.rzb2b-btn--block { width: 100%; text-align: center; }

/* "Add to quote" button — loading + added states */
.rzb2b-quote-btn.is-loading { opacity: .6; pointer-events: none; }
.rzb2b-quote-btn.is-added {
	background: var(--rzb2b-navy);
	color: #fff;
}

/* Hide WooCommerce's plain "View cart" link shown after an AJAX
   add-to-cart — the toast + the header cart drawer cover that already. */
.added_to_cart,
.added_to_cart.wc-forward { display: none !important; }

/* Toast confirmation */
.rzb2b-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	transform: translate(-50%, 14px);
	z-index: 100000;
	background: var(--rzb2b-navy);
	color: #fff;
	padding: 12px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 14px 32px -10px rgba(15, 29, 56, .55);
	opacity: 0;
	pointer-events: none;
	transition: opacity .28s ease, transform .28s ease;
}
.rzb2b-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
	.rzb2b-quote-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 480px) {
	.rzb2b-qitem { grid-template-columns: 48px 1fr 56px auto; gap: 10px; padding: 10px; }
}

/* =========================================================================
 *  2d. QUOTE DRAWER  (slide-out mini RFQ basket)
 * ====================================================================== */
.rzb2b-quote-drawer {
	position: fixed;
	inset: 0;
	z-index: 99990;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .28s ease, visibility 0s linear .28s;
}

.rzb2b-quote-drawer.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity .28s ease, visibility 0s;
}

.rzb2b-quote-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .30);
	-webkit-backdrop-filter: blur(4px);
	        backdrop-filter: blur(4px);
}

.rzb2b-quote-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-end: 0;
	width: min(440px, 86vw);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--glass-bg-strong, rgba(255, 255, 255, 0.92));
	-webkit-backdrop-filter: blur(22px) saturate(140%);
	        backdrop-filter: blur(22px) saturate(140%);
	border-inline-start: var(--rzb2b-glass-border);
	border-radius: 18px 0 0 18px;
	box-shadow: -22px 0 54px -20px rgba(15, 29, 56, .4);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

[dir="rtl"] .rzb2b-quote-drawer__panel {
	transform: translateX(-100%);
	border-radius: 0 18px 18px 0;
}
.rzb2b-quote-drawer.is-open .rzb2b-quote-drawer__panel { transform: translateX(0); }

/* Plain header — same as the theme's cart drawer (no coloured band) */
.rzb2b-quote-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rzb2b-quote-drawer__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--rzb2b-navy);
}

.rzb2b-quote-drawer__close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 23, 42, .06);
	color: var(--rzb2b-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease;
}
.rzb2b-quote-drawer__close:hover { background: rgba(15, 23, 42, .12); }

.rzb2b-quote-drawer__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 0;
}

.rzb2b-qd-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Item rows as white cards — matching the cart drawer's mini-cart items */
.rzb2b-qd-item {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 12px;
	align-items: center;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--rzb2b-border);
	border-radius: 12px;
}

.rzb2b-qd-item__media {
	width: 56px;
	height: 56px;
	background: #f1f4f9;
	border-radius: 8px;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rzb2b-qd-item__media img { width: 100%; height: 100%; object-fit: contain; }

.rzb2b-qd-item__info { min-width: 0; padding-inline-end: 22px; }
.rzb2b-qd-item__name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--rzb2b-ink);
	line-height: 1.35;
}
/* Compact quantity inputs inside the cart + quote drawers */
.rzb2b-qd-qty {
	width: 70px;
	margin-top: 6px;
	padding: 5px 7px;
	font-size: 13px;
	text-align: center;
}

.rzb2b-cqty-wrap { margin-top: 6px; }
.rzb2b-cqty {
	width: 70px;
	padding: 5px 7px;
	font-size: 13px;
	text-align: center;
}

.rzb2b-qd-remove {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: #f1f4f9;
	color: var(--rzb2b-muted);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.rzb2b-qd-remove:hover { background: #d64545; color: #fff; }

.rzb2b-qd-foot {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--rzb2b-border);
}

.rzb2b-qd-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 48px 16px;
	text-align: center;
	color: var(--rzb2b-muted);
	font-size: 15px;
}

html.rzb2b-drawer-open { overflow: hidden; }

/* Quick order pad */
.rzb2b-quickorder-table { max-width: 480px; }

.rzb2b-qo-sku {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--rzb2b-border);
	border-radius: 7px;
	font-size: 14px;
}

.rzb2b-quickorder-table td:nth-child(2) { width: 110px; }

/* =========================================================================
 *  3. MY ACCOUNT TRADE PAGES
 * ====================================================================== */
.rzb2b-account h3 {
	font-size: 17px;
	color: var(--rzb2b-navy);
	margin: 22px 0 8px;
}

.rzb2b-account__status {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 16px;
	border-radius: var(--rzb2b-radius);
	border: 1px solid var(--rzb2b-border);
	margin: 0 0 18px;
	font-size: 15px;
	background: #eef2f9;
}

.rzb2b-status--approved { background: #f0faf4; border-color: #cce9d7; }
.rzb2b-status--rejected { background: #fdf3f3; border-color: #f0d4d4; }
.rzb2b-status--pending  { background: #fdf8ec; border-color: #efe1bf; }

.rzb2b-account__status-label { color: var(--rzb2b-muted); }
.rzb2b-account__hint { color: var(--rzb2b-muted); font-size: 14px; margin: 0 0 14px; }

.rzb2b-kv {
	width: 100%;
	max-width: 540px;
	border-collapse: collapse;
	margin: 0 0 20px;
}

.rzb2b-kv th,
.rzb2b-kv td {
	text-align: start;
	padding: 9px 12px;
	border-bottom: 1px solid var(--rzb2b-border);
	font-size: 14px;
	vertical-align: top;
}

.rzb2b-kv th { width: 38%; font-weight: 600; color: var(--rzb2b-muted); }

/* ---- Profile / invite forms ---- */
.rzb2b-form { max-width: 540px; }

/* ---- Team table ---- */
.rzb2b-team-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
}

.rzb2b-team-table th,
.rzb2b-team-table td {
	text-align: start;
	padding: 10px 12px;
	border-bottom: 1px solid var(--rzb2b-border);
	font-size: 14px;
}

.rzb2b-team-table thead th { font-weight: 600; color: var(--rzb2b-muted); }

.rzb2b-role-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.rzb2b-role-badge--admin  { background: #e6efff; color: #1750c5; }
.rzb2b-role-badge--member { background: #eef1f5; color: #55606f; }

/* =========================================================================
 *  4. RESPONSIVE
 * ====================================================================== */
@media (max-width: 860px) {
	.rzb2b-apply {
		grid-template-columns: 1fr;
		margin: 24px auto;
		border-radius: 16px;
	}
	.rzb2b-apply__aside { padding: 32px 26px; }
	.rzb2b-apply__main  { padding: 30px 24px; }
	.rzb2b-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.rzb2b-kv th { width: 45%; }
	.rzb2b-team-table thead { display: none; }
	.rzb2b-team-table tr {
		display: block;
		border-bottom: 1px solid var(--rzb2b-border);
		padding-block: 8px;
	}
	.rzb2b-team-table td { display: block; border: 0; padding: 3px 0; }
}
