/* Paid account/addon styles owned by WholesaleX Pro. Generic primitives remain in Free. */

.wsx-filter select.wsx-bulk-order-select {
	border-color: var(--color-border-primary);
	border-width: 0 0 0 1px;
	border-radius: 0;
	width: 100%;
}
.wsx-account-info img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	max-width: unset;
}
.wsx-sub-account-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.wsx-new-sub-account .wsx-sub-account-heading {
	padding-bottom: 20px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--color-border-primary);
}

.wsx-sub-account-controller {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.wsx-sub-account-form {
	padding: 32px 24px;
	border-radius: var(--border-radius-lg);
	border: 1px solid var(--color-border-primary);
	background-color: var(--color-base-three);
}

.wsx-sub-account-form select,
.wsx-sub-account-form textarea,
.wsx-sub-account-form
	:is(
		input,
		input[type="text"],
		input[type="email"],
		input[type="password"],
		input[type="number"]
	) {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
	border-radius: var(--border-radius-md);
	border-color: var(--color-border-tertiary);
	background-color: var(--color-base-one);
}

.wsx-sub-account-form select:focus,
.wsx-sub-account-form textarea:focus,
.wsx-sub-account-form
	:is(
		input,
		input[type="text"],
		input[type="email"],
		input[type="password"],
		input[type="number"]
	):focus {
	border: 1px solid var(--color-primary);
	background-color: var(--color-base-one);
}
.wsx-account-table-container {
	overflow-x: auto;
}
.wsx-account-table-container table.wsx-table {
	border: none;
	border-collapse: collapse;
	padding-left: 0;
	padding-right: 0;
	padding-top: 20px;
	padding-bottom: 20px;
}

.wsx-account-table-container table.wsx-table th.job-title {
	padding-left: 0px;
}

.wsx-account-table-container table.wsx-table th.phone {
	padding-left: 0px;
}

.wsx-account-table-container table.wsx-table tbody td.wallet_balance {
	text-align: center;
}

.wsx-account-table-container table.wsx-table .permission {
	color: var(--color-text-medium);
}

.wsx-account-table-container table.wsx-table .no_permission {
	color: var(--color-text-disable);
}

.wsx-account-table-container table.wsx-table th {
	border: none;
	padding: 10px 16px;
}

.wsx-account-table-container table.wsx-table tbody td {
	border-width: 1px;
	padding: 10px 16px;
	white-space: nowrap;
}
.wsx-account-table-container table.wsx-table tbody td.amount {
	text-align: end;
}
.wsx-account-table-container table.wsx-table tbody td.details {
	white-space: normal;
}

.wsx-account-table-container table.wsx-table thead {
	background-color: var(--color-text-medium);
	color: white;
}
.wsx-account-table-container table.wsx-table tbody tr {
	vertical-align: middle;
}
.wsx-account-table-container table.wsx-table .wsx-ellipsis {
	max-width: 12rem;
}
.wsx-btn-wallet {
	width: 100%;
	min-width: 254px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: var(--border-radius-md);
	color: var(--color-tertiary);
	/* background-color: var(--color-gray); */
	background-color: var(--color-base-two);
	padding: 30px;
	cursor: pointer;
	font-size: 20px;
	font-weight: 500;
}
.wsx-btn-wallet.active {
	color: var(--color-text-reverse);
	background-color: var(--color-primary);
	position: relative;
}
.wsx-btn-wallet.active:after {
	content: "";
	position: absolute;
	bottom: -10px;
	border: 12px solid var(--color-primary);
	transform: rotate(45deg);
}
.wsx-btn-wallet.wallet_submit_btn,
.wsx-btn-wallet.wallet_request_btn {
	width: fit-content;
	color: var(--color-text-reverse);
	background-color: var(--color-tertiary);
	padding: var(--btn-vertical-padding) var(--btn-horizontal-padding);
	min-width: 260px;
}
.wsx-btn-wallet.wallet_submit_btn:hover,
.wsx-btn-wallet.wallet_request_btn:hover {
	background-color: var(--color-primary);
}
.wsx-wallet-add-balance {
	padding: 32px;
	background-color: var(--color-base-three);
	border: 1px solid var(--color-border-secondary);
	border-radius: var(--border-radius-lg);
}
.wsx-wallet-add-balance input[type="number"].wsx-input {
	min-width: 260px;
	border-color: var(--color-text-light);
	background-color: var(--color-base-one);
	border-radius: var(--border-radius-md);
}
.wsx-wallet-add-balance input[type="number"].wsx-input:focus {
	background-color: var(--color-base-one);
}
.wsx-new-conversation-container {
	margin-bottom: 40px;
}
.wsx-new-conversation-container input,
.wsx-new-conversation-container select.wsx-select,
.wsx-new-conversation-container textarea.wsx-textarea,
.wsx-new-conversation-container
	input:is(
		[type="url"],
		[type="tel"],
		[type="text"],
		[type="time"],
		[type="date"],
		[type="datetime"],
		[type="datetime-local"],
		[type="email"],
		[type="number"],
		[type="search"],
		[type="password"]
	) {
	border-radius: var(--border-radius-md);
	border-color: var(--color-border-tertiary);
	background-color: var(--color-base-one);
	transition: all var(--transition-sm);
}
.wsx-new-conversation-container input:focus,
.wsx-new-conversation-container select.wsx-select:focus,
.wsx-new-conversation-container textarea.wsx-textarea:focus,
.wsx-new-conversation-container
	input:is(
		[type="url"],
		[type="tel"],
		[type="text"],
		[type="time"],
		[type="date"],
		[type="datetime"],
		[type="datetime-local"],
		[type="email"],
		[type="number"],
		[type="search"],
		[type="password"]
	):focus {
	border: 1px solid var(--color-primary);
}
.wsx-conversation-form {
	display: flex;
	flex-direction: column;
	gap: 30px;
}
.wsx-conversation-form label.wsx-label {
	margin-bottom: 8px;
	display: block;
}
.wsx-conversation-form input.wsx-btn {
	border-radius: var(--border-radius-md);
	margin-left: auto;
}

.wsx-conversation-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.wsx-conversation-header {
	font-size: 26px;
	font-weight: var(--font-weight-bold);
	color: var(--color-text-medium);
	line-height: 1.33;
}

.wsx-conversation-form {
	padding: 30px;
	background-color: var(--color-base-three);
	border-radius: var(--border-radius-md);
	border: 1px solid var(--color-border-primary);
}
.wsx-conversation-form select {
	background-color: var(--color-base-one, #ffffff);
}
.wholesalex_wallet_page .approve-button {
	margin-right: 10px;
	padding: 10px;
	background-color: #4caf50;
	border: none;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.wholesalex_wallet_page .decline-button {
	padding: 10px;
	background-color: #f44336;
	border: none;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}



.wsx-bulk-item-delete {
	background-color: var(--color-base-three);
	color: var(--color-negative);
	line-height: 0;
	border-radius: var(--border-radius-md);
	padding: 8px;
}
.wsx-bulk-item-delete:hover {
	background-color: var(--color-negative);
	color: var(--color-base-one);
}

.wsx-reply-lists {
	margin-bottom: 30px;
}
.wsx-reply-meta {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: start;
}

.wsx-reply-lists.wsx-reply-right .wsx-reply-meta,
.wsx-reply-lists.wsx-reply-right .wsx-message-container {
	justify-content: end;
}
.wsx-reply-meta .wsx-image {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

.wsx-message-container {
	display: flex;
}
.wsx-message-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
	width: fit-content;
	position: relative;
}
.wsx-reply-lists.wsx-reply-right .wsx-message-wrapper {
	flex-direction: row-reverse;
}
.wsx-message {
	width: fit-content;
	max-width: 36vw;
	padding: 12px 20px;
	line-height: 1.15em;
}

.wsx-quote,
.wsx-message {
	background-color: var(--color-base-two);
	border-radius: 0 var(--border-radius-lg) var(--border-radius-lg)
		var(--border-radius-lg);
}
.wsx-reply-lists.wsx-reply-right .wsx-quote,
.wsx-reply-lists.wsx-reply-right .wsx-message {
	color: var(--color-text-reverse);
	background-color: var(--color-primary);
	border-radius: var(--border-radius-lg) 0 var(--border-radius-lg)
		var(--border-radius-lg);
}
.wsx-quote-heading {
	font-size: 18px;
	font-weight: var(--font-weight-medium);
	margin-bottom: 12px;
}
.wsx-quote-table {
	background-color: var(--color-base-one);
	color: var(--color-text-light);
	border-radius: var(--border-radius-md);
	border: 1px solid var(--color-border-tertiary);
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	width: 100%;
}

.wsx-quote-table-head {
	background-color: var(--color-base-three);
	color: var(--color-text-medium);
}

.wsx-quote-table-row {
	padding: 12px 24px;
	display: grid;
	align-items: center;
	grid-template-columns: 2fr repeat(2, 1fr);
	border-bottom: 1px solid var(--color-base-two);
}
.wsx-quote-table-row:last-child {
	border-bottom: none;
}
.wsx-quote-table-row.wsx-quote-item-4 {
	grid-template-columns: 2fr repeat(3, 1fr);
}

.wsx-quote-table-item {
	min-width: 100px;
}
.wsx-quote-table-item.wsx-table-product-name {
	min-width: 140px;
}
a.wsx-quote-item-link {
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 8rem;
}
a.wsx-quote-item-link:hover {
	color: var(--color-orchid);
}

.wsx-quote-table-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.wsx-quote-table-text {
	font-size: 16px;
	color: var(--color-tertiary);
}
.wsx-reply-lists.wsx-reply-right .wsx-quote-table-text,
.wsx-reply-lists.wsx-reply-right
	.wsx-quote-table-text
	.woocommerce-Price-amount {
	color: var(--color-text-reverse);
}
.wsx-quote-table-text .woocommerce-Price-amount {
	font-weight: var(--font-weight-bold);
}

.wsx-reply-container {
	border-top: 1px solid var(--color-border-primary);
}
.wsx-reply-container textarea.wsx-textarea {
	padding: 6px 10px;
	margin: 0 0 16px;
	outline: none;
	border: 1px solid var(--color-border-primary);
	border-radius: var(--border-radius-md);
	box-shadow: none;
	background-color: var(--color-base-one);
	width: 100%;
	min-height: 40px;
	height: 100%;
	font-size: 14px;
}
.wsx-reply-container textarea.wsx-textarea:focus {
	border: 1px solid var(--color-primary);
	box-shadow: none;
}
@media (max-width: 850px) {
	.wsx-message {
		max-width: 56vw;
	}
}
@media (max-width: 490px) {
	.wsx-message {
		max-width: 46vw;
	}
}

/* Buy X Get Y single product free-items preview */
.wholesalex_free_items.wsx-bxgy-free-items {
	margin: 0 0 20px;
	padding: 0;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #ffffff;
	color: #1d2327;
	overflow: hidden;
	box-sizing: border-box;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-min-purchase-text {
	margin: 0;
	padding: 14px 16px;
	border-bottom: 1px solid #dcdcde;
	color: #1d2327;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-promo-card {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	margin: 0;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	box-shadow: none;
	box-sizing: border-box;
}

.wholesalex_free_items.wsx-bxgy-free-items
	.wsx-bxgy-free-promo-card
	+ .wsx-bxgy-free-promo-card {
	border-top: 1px solid #dcdcde;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-thumb {
	position: relative;
	width: 74px;
	height: 74px;
	border-radius: 4px;
	background: #f6f7f7;
	overflow: visible;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: inherit;
	object-fit: contain;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-qty-badge {
	position: absolute;
	top: -10px;
	right: -10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 8px;
	border-radius: 999px;
	background: #1d2327;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-meta {
	min-width: 0;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-title {
	margin: 0;
	color: #1d2327;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
	color: #1d2327;
	font-size: 15px;
	line-height: 1.2;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-regular-price {
	color: #646970;
	text-decoration: line-through;
}

.wholesalex_free_items.wsx-bxgy-free-items
	.wsx-bxgy-free-item-regular-price
	.amount {
	color: inherit;
	text-decoration: inherit;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-free-price {
	color: #1d2327;
	font-weight: 700;
}

.wholesalex_free_items.wsx-bxgy-free-items .wsx-free-item-tag,
.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-qty {
	display: none;
}

@media (max-width: 480px) {
	.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-promo-card {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 12px;
	}

	.wholesalex_free_items.wsx-bxgy-free-items .wsx-bxgy-free-item-thumb {
		width: 64px;
		height: 64px;
	}
}

.wsx-combined-bogo-badge {
	display: flex;
}
