:root {
	--sm-b2b-gold: #d6aa54;
	--sm-b2b-gold-dark: #9f742c;
	--sm-b2b-ink: #11100d;
	--sm-b2b-panel: #171510;
	--sm-b2b-line: rgba(214, 170, 84, 0.28);
	--sm-b2b-text: #f4ecdc;
	--sm-b2b-muted: #b9ad98;
}

.sm-b2b-dashboard-card,
.sm-b2b-quick-banner,
.sm-b2b-cart-summary {
	box-sizing: border-box;
}

.sm-b2b-dashboard-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 24px 0;
	padding: 22px 24px;
	border: 1px solid var(--sm-b2b-line);
	background: linear-gradient(135deg, #171510, #211b12);
	color: var(--sm-b2b-text);
}

.sm-b2b-dashboard-card small,
.sm-b2b-hero small,
.sm-b2b-form-heading small,
.sm-b2b-section-heading small,
.sm-b2b-quick-banner small {
	display: block;
	margin-bottom: 5px;
	color: var(--sm-b2b-gold);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
}

.sm-b2b-dashboard-card h3,
.sm-b2b-dashboard-card p {
	margin: 0;
	color: inherit;
}

.sm-b2b-dashboard-card p {
	margin-top: 6px;
	color: var(--sm-b2b-muted);
}

.sm-b2b-dashboard-card a,
.sm-b2b-quick-banner a,
.sm-b2b-empty a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid var(--sm-b2b-gold);
	color: var(--sm-b2b-gold);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.sm-b2b-center {
	color: var(--sm-b2b-text);
}

.sm-b2b-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 26px;
	padding: 30px;
	border: 1px solid var(--sm-b2b-line);
	background: radial-gradient(circle at 85% 0, rgba(214, 170, 84, 0.18), transparent 34%), #11100d;
}

.sm-b2b-hero h1,
.sm-b2b-hero p {
	margin: 0;
	color: inherit;
}

.sm-b2b-hero h1 {
	font-size: clamp(28px, 4vw, 46px);
}

.sm-b2b-hero p {
	max-width: 700px;
	margin-top: 10px;
	color: var(--sm-b2b-muted);
}

.sm-b2b-hero > a {
	color: var(--sm-b2b-gold);
	font-weight: 800;
	white-space: nowrap;
}

.sm-b2b-status {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 26px;
	padding: 22px;
	border: 1px solid var(--sm-b2b-line);
	background: #171510;
}

.sm-b2b-status > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 86px;
	min-height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	background: #3b301c;
	color: #f0c978;
	font-size: 13px;
	font-weight: 900;
}

.sm-b2b-status.is-approved {
	border-color: rgba(47, 190, 92, 0.42);
	background: linear-gradient(90deg, rgba(19, 91, 43, 0.24), #171510 55%);
}

.sm-b2b-status.is-approved > span {
	background: #145a2c;
	color: #d9ffe5;
}

.sm-b2b-status.is-rejected {
	border-color: rgba(219, 135, 55, 0.5);
}

.sm-b2b-status h2,
.sm-b2b-status p {
	margin: 0;
	color: inherit;
}

.sm-b2b-status p {
	margin-top: 5px;
	color: var(--sm-b2b-muted);
}

.sm-b2b-benefits,
.sm-b2b-shortcuts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 26px;
}

.sm-b2b-benefits article,
.sm-b2b-shortcuts a {
	display: block;
	padding: 22px;
	border: 1px solid var(--sm-b2b-line);
	background: #171510;
	color: var(--sm-b2b-text);
	text-decoration: none;
}

.sm-b2b-benefits b,
.sm-b2b-shortcuts b {
	display: block;
	margin-bottom: 16px;
	color: var(--sm-b2b-gold);
	font-family: Georgia, serif;
	font-size: 22px;
}

.sm-b2b-benefits h3,
.sm-b2b-benefits p,
.sm-b2b-shortcuts strong,
.sm-b2b-shortcuts span {
	display: block;
	margin: 0;
	color: inherit;
}

.sm-b2b-benefits p,
.sm-b2b-shortcuts span {
	margin-top: 8px;
	color: var(--sm-b2b-muted);
	font-size: 14px;
}

.sm-b2b-profile-form {
	margin: 0 0 26px;
	padding: 28px;
	border: 1px solid var(--sm-b2b-line);
	background: #11100d;
}

.sm-b2b-form-heading,
.sm-b2b-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.sm-b2b-form-heading h2,
.sm-b2b-form-heading p,
.sm-b2b-section-heading h2,
.sm-b2b-section-heading p {
	margin: 0;
	color: inherit;
}

.sm-b2b-form-heading p,
.sm-b2b-section-heading p {
	max-width: 430px;
	color: var(--sm-b2b-muted);
	font-size: 14px;
}

.sm-b2b-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.sm-b2b-form-grid label {
	display: block;
}

.sm-b2b-form-grid label.is-wide {
	grid-column: 1 / -1;
}

.sm-b2b-form-grid span {
	display: block;
	margin-bottom: 7px;
	color: #d9cfbd;
	font-size: 13px;
	font-weight: 700;
}

.sm-b2b-form-grid input,
.sm-b2b-form-grid select {
	width: 100%;
	min-height: 46px;
	box-sizing: border-box;
	padding-inline: 14px;
	border: 1px solid #5c4a2c;
	border-radius: 0;
	background: #f6f1e8 !important;
	color: #191713 !important;
	-webkit-text-fill-color: #191713;
	caret-color: #191713;
	color-scheme: light;
}

.sm-b2b-form-grid input:focus,
.sm-b2b-form-grid select:focus {
	background: #f6f1e8 !important;
	color: #191713 !important;
	-webkit-text-fill-color: #191713;
	border-color: var(--sm-b2b-gold);
	box-shadow: 0 0 0 2px rgba(214, 170, 84, 0.18);
}

.sm-b2b-form-grid input::placeholder {
	color: #746c61 !important;
	-webkit-text-fill-color: #746c61;
	opacity: 1;
}

.sm-b2b-form-grid select option {
	background: #f6f1e8;
	color: #191713;
}

.sm-b2b-form-grid input:-webkit-autofill,
.sm-b2b-form-grid input:-webkit-autofill:hover,
.sm-b2b-form-grid input:-webkit-autofill:focus,
.sm-b2b-form-grid input:-webkit-autofill:active {
	-webkit-text-fill-color: #191713 !important;
	caret-color: #191713 !important;
	-webkit-box-shadow: 0 0 0 1000px #f6f1e8 inset !important;
	box-shadow: 0 0 0 1000px #f6f1e8 inset !important;
	transition: background-color 999999s 0s;
}

.sm-b2b-readonly input {
	background: #d9d1c2 !important;
	color: #5c5549 !important;
	-webkit-text-fill-color: #5c5549;
}

.sm-b2b-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px 0;
	color: var(--sm-b2b-muted);
	font-size: 13px;
}

.sm-b2b-consent input {
	margin-top: 4px;
}

.sm-b2b-primary,
.sm-b2b-order-submit button {
	min-height: 46px;
	padding: 0 24px;
	border: 1px solid var(--sm-b2b-gold);
	border-radius: 0;
	background: var(--sm-b2b-gold);
	color: #17120a;
	font-weight: 900;
	cursor: pointer;
}

.sm-b2b-profile-details {
	margin-top: 26px;
	border: 1px solid var(--sm-b2b-line);
	background: #11100d;
}

.sm-b2b-profile-details > summary {
	padding: 18px 22px;
	color: var(--sm-b2b-gold);
	font-weight: 800;
	cursor: pointer;
}

.sm-b2b-profile-details .sm-b2b-profile-form {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--sm-b2b-line);
}

.sm-b2b-order-list {
	margin-top: 30px;
}

.sm-b2b-order-head,
.sm-b2b-order-row {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) 130px 100px 140px;
	align-items: center;
	gap: 14px;
}

.sm-b2b-order-head {
	padding: 11px 18px;
	background: #2b2418;
	color: var(--sm-b2b-gold);
	font-size: 12px;
	font-weight: 800;
}

.sm-b2b-order-row {
	padding: 14px 18px;
	border: 1px solid var(--sm-b2b-line);
	border-top: 0;
	background: #171510;
}

.sm-b2b-order-row.is-favorite {
	background: linear-gradient(90deg, rgba(214, 170, 84, 0.09), #171510 35%);
}

.sm-b2b-order-product {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sm-b2b-order-product img {
	width: 58px;
	height: 58px;
	object-fit: cover;
}

.sm-b2b-order-product a,
.sm-b2b-order-product small {
	display: block;
}

.sm-b2b-order-product a {
	color: var(--sm-b2b-text);
	font-weight: 800;
	text-decoration: none;
}

.sm-b2b-order-product small {
	margin-top: 5px;
	color: var(--sm-b2b-muted);
}

.sm-b2b-order-row > strong,
.sm-b2b-order-row > b {
	color: var(--sm-b2b-text);
}

.sm-b2b-order-qty span {
	display: none;
}

.sm-b2b-order-qty input {
	width: 82px;
	min-height: 42px;
	border: 1px solid #6c5734;
	background: #0d0c0a;
	color: #fff;
	text-align: center;
}

.sm-b2b-order-qty input:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.sm-b2b-minimum-error {
	display: block;
	margin-top: 5px;
	color: #ffadad;
	font-size: 11px;
	font-weight: 800;
}

.sm-b2b-minimum-error[hidden] {
	display: none !important;
}

.sm-b2b-order-row.is-unavailable {
	opacity: 0.7;
}

.sm-b2b-unavailable {
	grid-column: 1 / -1;
	color: #e0a45a;
}

.sm-b2b-order-submit {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	padding: 18px;
	border: 1px solid var(--sm-b2b-line);
	border-top: 0;
	background: #211b12;
}

.sm-b2b-order-submit span,
.sm-b2b-order-submit small,
.sm-b2b-order-submit strong {
	display: block;
	text-align: right;
}

.sm-b2b-order-submit button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.sm-b2b-order-submit small {
	color: var(--sm-b2b-muted);
}

.sm-b2b-order-submit strong {
	margin-top: 3px;
	color: var(--sm-b2b-gold);
	font-size: 22px;
}

.sm-b2b-empty {
	padding: 28px;
	border: 1px dashed var(--sm-b2b-line);
	background: #171510;
	text-align: center;
}

.sm-b2b-empty h3,
.sm-b2b-empty p {
	color: inherit;
}

.sm-b2b-empty p {
	color: var(--sm-b2b-muted);
}

.sm-b2b-quick-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin: 18px 0 24px;
	padding: 17px 20px;
	border: 1px solid var(--sm-b2b-line);
	background: linear-gradient(90deg, #211b12, #15130f);
	color: var(--sm-b2b-text);
}

.sm-b2b-quick-banner strong {
	display: block;
}

.sm-b2b-quick-banner.is-approved {
	border-color: rgba(47, 190, 92, 0.4);
	background: linear-gradient(90deg, rgba(18, 89, 41, 0.26), #15130f);
}

.sm-b2b-favorite-form {
	margin: 12px 0 0;
}

.sm-b2b-favorite-form button,
.sm-b2b-favorite-login {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #806434;
	background: transparent;
	color: var(--sm-b2b-gold);
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.sm-b2b-favorite-form button.is-saved {
	border-color: var(--sm-b2b-gold);
	background: rgba(214, 170, 84, 0.1);
}

.sm-b2b-price-label {
	display: block;
	margin-top: 4px;
	color: #56d47c;
	font-size: 12px;
	font-weight: 800;
}

.sm-b2b-price-label.is-pending {
	display: inline-block;
	margin-top: 7px;
	padding: 4px 7px;
	border: 1px solid #b77b21;
	border-radius: 5px;
	background: #f5dda6;
	color: #3b2604;
}

.sm-b2b-bulk-rule {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 14px 0 18px;
	padding: 13px 16px;
	border: 1px solid rgba(214, 170, 84, 0.46);
	background: rgba(214, 170, 84, 0.09);
	color: var(--sm-b2b-text);
}

.sm-b2b-bulk-rule strong {
	color: var(--sm-b2b-gold);
}

.sm-b2b-order-row.is-quantity-invalid,
.sm-order-row.is-quantity-invalid {
	border-color: #ef635e !important;
	box-shadow: inset 0 0 0 1px rgba(239, 99, 94, 0.38);
}

.sm-b2b-order-row.is-quantity-invalid input,
.sm-order-row.is-quantity-invalid input {
	border-color: #ef635e !important;
	color: #ffd8d6 !important;
}

.sm-b2b-cart-summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 3px 14px;
	margin: 0 0 16px;
	padding: 15px 18px;
	border: 1px solid var(--sm-b2b-line);
	background: #171510;
	color: var(--sm-b2b-text);
}

.sm-b2b-cart-summary > span {
	grid-row: 1 / 3;
	align-self: center;
	padding: 5px 9px;
	border-radius: 999px;
	background: #145a2c;
	color: #d9ffe5;
	font-size: 11px;
	font-weight: 800;
}

.sm-b2b-cart-summary.is-pending > span {
	background: #6b4816;
	color: #fff0cc;
}

.sm-b2b-cart-summary.is-ready {
	border-color: rgba(47, 190, 92, 0.48);
}

.sm-b2b-cart-summary.is-ready > span {
	background: #145a2c;
	color: #d9ffe5;
}

.sm-b2b-cart-summary strong,
.sm-b2b-cart-summary small {
	display: block;
}

.sm-b2b-cart-summary small {
	color: var(--sm-b2b-muted);
}

.sm-b2b-cart-summary[hidden] {
	display: none;
}

.sm-b2b-purchase-fields,
.sm-b2b-order-reference {
	margin: 22px 0;
	padding: 20px;
	border: 1px solid var(--sm-b2b-line);
}

.sm-b2b-order-reference dl,
.sm-b2b-order-reference dl div {
	margin: 0;
}

.sm-b2b-order-reference dl div {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 12px;
	padding: 8px 0;
}

.sm-b2b-order-reference dt {
	font-weight: 800;
}

.sm-b2b-order-reference dd {
	margin: 0;
}

.sm-b2b-order-reference dd small {
	display: block;
	color: var(--sm-b2b-muted);
}

@media (max-width: 980px) {
	.sm-b2b-benefits,
	.sm-b2b-shortcuts {
		grid-template-columns: 1fr;
	}

	.sm-b2b-order-head {
		display: none;
	}

	.sm-b2b-order-row {
		grid-template-columns: minmax(100px, 1fr) 92px minmax(110px, 1fr);
		gap: 10px;
	}

	.sm-b2b-order-product {
		grid-column: 1 / -1;
	}

	.sm-b2b-order-price::before,
	.sm-b2b-line-total::before,
	.sm-b2b-order-qty span {
		display: block;
		margin-bottom: 4px;
		color: var(--sm-b2b-muted);
		font-size: 11px;
		font-weight: 700;
	}

	.sm-b2b-order-price::before,
	.sm-b2b-line-total::before {
		content: attr(data-label);
	}

	.sm-b2b-order-qty {
		text-align: center;
	}

	.sm-b2b-order-qty input {
		width: 100%;
	}

	.sm-b2b-line-total {
		text-align: right;
	}
}

@media (max-width: 680px) {
	.sm-b2b-dashboard-card,
	.sm-b2b-hero,
	.sm-b2b-form-heading,
	.sm-b2b-section-heading,
	.sm-b2b-quick-banner,
	.sm-b2b-order-submit {
		align-items: stretch;
		flex-direction: column;
	}

	.sm-b2b-dashboard-card a,
	.sm-b2b-quick-banner a {
		width: 100%;
		box-sizing: border-box;
	}

	.sm-b2b-hero,
	.sm-b2b-profile-form {
		padding: 22px 18px;
	}

	.sm-b2b-form-grid {
		grid-template-columns: 1fr;
	}

	.sm-b2b-form-grid label.is-wide {
		grid-column: auto;
	}

	.sm-b2b-status {
		align-items: flex-start;
		flex-direction: column;
	}

	.sm-b2b-order-submit span,
	.sm-b2b-order-submit small,
	.sm-b2b-order-submit strong {
		text-align: left;
	}

	.sm-b2b-order-submit button {
		width: 100%;
	}

	.sm-b2b-bulk-rule {
		align-items: flex-start;
		flex-direction: column;
	}

	.sm-b2b-order-row {
		grid-template-columns: minmax(74px, 1fr) 70px minmax(86px, 1fr);
		gap: 8px;
		padding: 14px 12px;
	}

	.sm-b2b-cart-summary {
		grid-template-columns: 1fr;
	}

	.sm-b2b-cart-summary > span {
		grid-row: auto;
		justify-self: start;
	}
}

@media (max-width: 360px) {
	.sm-b2b-order-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.sm-b2b-order-product,
	.sm-b2b-line-total,
	.sm-b2b-unavailable {
		grid-column: 1 / -1;
	}

	.sm-b2b-order-price,
	.sm-b2b-order-qty,
	.sm-b2b-line-total {
		text-align: left;
	}
}
