.hb-crm-form-wrap {
	width: 100%;
}

.hb-crm-fields-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.hb-crm-field--full {
	grid-column: 1 / -1;
}

.hb-crm-field-label {
	display: block;
	margin-bottom: 6px;
	color: var(--hb-ink);
	font-size: 0.88rem;
	font-weight: 850;
}

.hb-crm-required {
	color: var(--hb-orange-dark);
}

.hb-crm-input,
.hb-crm-select,
.hb-crm-textarea {
	width: 100%;
	border: 1px solid var(--hb-line);
	border-radius: 6px;
	background: #fff;
	color: var(--hb-ink);
	padding: 10px 12px;
}

.hb-crm-textarea {
	min-height: 120px;
	resize: vertical;
}

.hb-crm-choice-group {
	display: grid;
	gap: 8px;
}

.hb-crm-choice-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--hb-muted);
	font-size: 0.9rem;
}

.hb-crm-field-help {
	margin: 5px 0 0;
	color: var(--hb-muted);
	font-size: 0.8rem;
}

.hb-crm-submit-wrap {
	margin-top: 14px;
}

.hb-crm-submit-btn {
	min-height: 42px;
	padding: 0 18px;
}

.hb-crm-form-message {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 0.9rem;
}

.hb-crm-form-message--success {
	background: #e7f7ef;
	color: #0f684f;
}

.hb-crm-form-message--error {
	background: #fff0ed;
	color: #b42318;
}

.hb-crm-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hb-crm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 24, 32, 0.58);
}

.hb-crm-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 560px);
	max-height: min(760px, 92vh);
	overflow: auto;
	border-radius: 8px;
	background: #fff;
	padding: 24px;
	box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.hb-crm-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: var(--hb-soft);
	color: var(--hb-ink);
	font-size: 1.4rem;
}

.hb-crm-modal__title {
	margin: 0 36px 18px 0;
	font-size: 1.25rem;
}

.my-b2b-crm-inquiry-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 20px;
	color: var(--hb-ink);
}

.my-b2b-crm-inquiry-modal[aria-hidden="false"] {
	display: flex !important;
}

.my-b2b-crm-inquiry-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 24, 32, 0.58);
}

.my-b2b-crm-inquiry-modal__dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(100%, 560px);
	max-height: min(760px, 92vh);
	overflow: auto;
	border: 1px solid var(--hb-line);
	border-radius: 8px;
	background: #fff;
	padding: 24px;
	box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.my-b2b-crm-inquiry-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	border: 0;
	border-radius: 999px;
	background: var(--hb-soft);
	color: var(--hb-ink);
	padding: 0;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.my-b2b-crm-inquiry-modal__title {
	margin: 0 42px 18px 0;
	color: var(--hb-ink);
	font-size: 1.25rem;
	line-height: 1.25;
}

.my-b2b-crm-inquiry-modal__body {
	color: var(--hb-ink);
}

#hb-crm-chat-widget {
	position: fixed;
	z-index: 99990;
	right: var(--hb-crm-side, 20px);
	bottom: var(--hb-crm-bottom, 20px);
	display: grid;
	justify-items: end;
	gap: 10px;
	--hb-crm-color: var(--hb-orange);
}

#hb-crm-chat-widget.is-left {
	right: auto;
	left: var(--hb-crm-side, 20px);
	justify-items: start;
}

.hb-crm-widget-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--hb-crm-color);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.hb-crm-widget-badge {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #ef4444;
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.16);
}

.hb-crm-widget-card {
	position: relative;
	width: min(320px, calc(100vw - 32px));
	border: 1px solid var(--hb-line);
	border-radius: 8px;
	background: #fff;
	padding: 18px;
	box-shadow: var(--hb-shadow);
}

.hb-crm-widget-card strong {
	display: block;
	padding-right: 28px;
	font-size: 1rem;
}

.hb-crm-widget-card p {
	margin: 6px 0 14px;
	color: var(--hb-muted);
	font-size: 0.9rem;
}

.hb-crm-widget-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	padding: 0;
	background: var(--hb-soft);
	color: var(--hb-ink);
}

.hb-crm-widget-channels {
	display: grid;
	gap: 8px;
}

.hb-crm-widget-channel {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	min-height: 40px;
	border-radius: 6px;
	background: #f7f9fb;
	color: var(--hb-ink);
	font-weight: 850;
	padding: 7px 10px;
	text-align: left;
}

.hb-crm-widget-channel:hover {
	background: #fff3eb;
	color: var(--hb-orange-dark);
}

.hb-crm-widget-channel-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--hb-channel-color, var(--hb-crm-color));
	color: #fff;
	font-size: 0.66rem;
	font-weight: 900;
	letter-spacing: 0;
}

.hb-crm-reviews {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 18px 0;
}

.hb-crm-reviews--cols-1 {
	grid-template-columns: 1fr;
}

.hb-crm-reviews--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hb-crm-reviews--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hb-crm-review-card {
	overflow: hidden;
	border: 1px solid var(--hb-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(23, 32, 42, 0.05);
}

.hb-crm-review-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--hb-soft);
}

.hb-crm-review-card__image img,
.hb-crm-review-card__video video,
.hb-crm-review-card__video iframe {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hb-crm-review-card__video {
	aspect-ratio: 16 / 9;
	background: #111827;
}

.hb-crm-review-card__body {
	padding: 14px;
}

.hb-crm-review-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.hb-crm-review-card__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--hb-orange);
	color: #fff;
	font-weight: 900;
}

.hb-crm-review-card__meta strong,
.hb-crm-review-card__meta time {
	display: block;
}

.hb-crm-review-card__meta time {
	color: var(--hb-muted);
	font-size: 0.8rem;
}

.hb-crm-stars {
	color: #d5dbe3;
	letter-spacing: 0;
}

.hb-crm-stars .is-on {
	color: #f4b400;
}

.hb-crm-review-card__content {
	color: #27313c;
	font-size: 0.94rem;
}

.hb-crm-review-dims {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.hb-crm-review-dim {
	display: grid;
	grid-template-columns: 88px 1fr 34px;
	align-items: center;
	gap: 8px;
	color: var(--hb-muted);
	font-size: 0.8rem;
}

.hb-crm-review-dim b {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: var(--hb-green);
}

.hb-crm-review-dim {
	background-image: linear-gradient(var(--hb-line), var(--hb-line));
	background-position: 96px center;
	background-size: calc(100% - 138px) 6px;
	background-repeat: no-repeat;
}

.hb-crm-review-upload {
	display: grid;
	gap: 6px;
}

.hb-crm-review-upload input {
	width: 100%;
	border: 1px dashed var(--hb-line);
	border-radius: 6px;
	padding: 10px;
	background: #fbfcfe;
}

.hb-crm-review-upload small {
	color: var(--hb-muted);
}

#my-b2b-chat-widget .wgt-channel-icon-btn {
	text-decoration: none;
}

#my-b2b-chat-widget {
	position: fixed;
	z-index: 99990;
	right: 20px;
	bottom: 20px;
	display: grid;
	justify-items: end;
	gap: 10px;
	box-sizing: border-box;
	font-family: inherit;
	color: var(--hb-ink);
}

#my-b2b-chat-widget.wgt-pos-left {
	right: auto !important;
	left: 20px !important;
	justify-items: start;
}

#my-b2b-chat-widget,
#my-b2b-chat-widget * {
	box-sizing: border-box;
}

#my-b2b-chat-widget .wgt-card[hidden],
#my-b2b-chat-widget .wgt-card.wgt-card--hidden {
	display: none !important;
}

#my-b2b-chat-widget .wgt-card {
	overflow: hidden;
	width: min(320px, calc(100vw - 32px));
	border: 1px solid var(--hb-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(16, 24, 32, 0.18);
}

#my-b2b-chat-widget .wgt-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	color: #fff;
	padding: 12px 14px;
}

#my-b2b-chat-widget .wgt-card-avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
}

#my-b2b-chat-widget .wgt-card-avatar svg {
	display: block;
	width: 20px;
	height: 20px;
}

#my-b2b-chat-widget .wgt-card-title {
	min-width: 0;
	flex: 1 1 auto;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 900;
	line-height: 1.25;
}

#my-b2b-chat-widget .wgt-card-close {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	padding: 0;
	cursor: pointer;
}

#my-b2b-chat-widget .wgt-card-body {
	padding: 16px 14px 18px;
}

#my-b2b-chat-widget .wgt-card-text {
	margin: 0 0 14px;
	color: var(--hb-muted);
	font-size: 0.88rem;
	line-height: 1.5;
}

#my-b2b-chat-widget .wgt-channel-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
}

#my-b2b-chat-widget .wgt-channel-icon-btn {
	display: inline-flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: 62px;
	min-height: 68px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--hb-ink);
	padding: 0;
	text-align: center;
	cursor: pointer;
	appearance: none;
}

#my-b2b-chat-widget .wgt-channel-icon-btn:hover {
	color: var(--hb-orange-dark);
	transform: translateY(-1px);
}

#my-b2b-chat-widget .wgt-ch-icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	box-shadow: 0 10px 18px rgba(16, 24, 32, 0.14);
}

#my-b2b-chat-widget .wgt-ch-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
}

#my-b2b-chat-widget .wgt-ch-icon-label {
	display: block;
	max-width: 62px;
	overflow: hidden;
	color: inherit;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#my-b2b-chat-widget .wgt-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	min-width: 56px;
	min-height: 56px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	box-shadow: 0 14px 32px rgba(16, 24, 32, 0.22);
	cursor: pointer;
}

#my-b2b-chat-widget .wgt-toggle svg {
	display: block;
	width: 24px;
	height: 24px;
}

#my-b2b-chat-widget .wgt-badge {
	position: absolute;
	top: 3px;
	right: 4px;
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #ef4444;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
	width: min(100%, 520px);
}

.woocommerce div.product form.cart .woocommerce-variation-price {
	display: none !important;
}

.woocommerce div.product form.cart .my-b2b-crm-tier-table-wrapper,
.woocommerce div.product form.cart .my-b2b-crm-tier-table-wrapper--dynamic {
	grid-column: 1 / -1;
	box-sizing: border-box;
	width: 100%;
	margin: 6px 0 4px;
	clear: both;
}

.woocommerce div.product form.cart .my-b2b-crm-tier-table__scroll {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--hb-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.woocommerce div.product form.cart table.my-b2b-crm-tier-table {
	width: 100%;
	min-width: 0;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 0.92rem;
}

.woocommerce div.product form.cart table.my-b2b-crm-tier-table tr {
	display: table-row;
	margin: 0;
}

.woocommerce div.product form.cart table.my-b2b-crm-tier-table th,
.woocommerce div.product form.cart table.my-b2b-crm-tier-table td {
	display: table-cell;
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--hb-line);
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
}

.woocommerce div.product form.cart table.my-b2b-crm-tier-table th {
	background: #f7f9fb;
	color: var(--hb-muted);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.woocommerce div.product form.cart table.my-b2b-crm-tier-table th:last-child,
.woocommerce div.product form.cart table.my-b2b-crm-tier-table td:last-child {
	text-align: right;
}

.woocommerce div.product form.cart table.my-b2b-crm-tier-table tbody tr:last-child td {
	border-bottom: 0;
}

.woocommerce div.product form.cart table.my-b2b-crm-tier-table td {
	color: var(--hb-ink);
	font-weight: 800;
}

.woocommerce div.product form.cart table.my-b2b-crm-tier-table td .amount {
	color: var(--hb-orange-dark);
	font-weight: 950;
}

.woocommerce div.product form.cart table.my-b2b-crm-tier-table .my-b2b-crm-tier-table__row--active td {
	background: #fff7ed;
	border-bottom-color: #fed7aa;
}

@media (max-width: 900px) {
	.hb-crm-reviews,
	.hb-crm-reviews--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.hb-crm-fields-grid,
	.hb-crm-reviews,
	.hb-crm-reviews--cols-2,
	.hb-crm-reviews--cols-4 {
		grid-template-columns: 1fr;
	}

	#hb-crm-chat-widget,
	#hb-crm-chat-widget.is-left,
	#my-b2b-chat-widget,
	#my-b2b-chat-widget.wgt-pos-left {
		right: 12px;
		left: auto;
		bottom: 12px;
	}
}
