.cb-content .arrow:after {
	background:none;
}

.cb-content .table>thead>tr>th {
	border-bottom-width: 1px;
}

.cb-content img {
	max-width:100%;
	height:auto;
}

.cb-content li {
	line-height:normal;
}

.cb-content .btn.btn-primary {
	text-shadow: none;
	background-image:none;
	box-shadow:none;
	color: var(--cb-text-inverse, #fff);
	background-color:var(--cb-primary, #337ab7);
	border-color:var(--cb-primary-border, #245580);
}

.cb-content .btn-primary:not([href]):hover,
.cb-content .btn-primary:hover {
	color: var(--cb-text-inverse, #fff);
	background-color: var(--cb-primary-hover, #265a88);
	border-color: var(--cb-primary-hover-border, #204d74);
}

.cb-content .btn.btn-default {
	border-color: var(--cb-btn-border, #ccc);
	background-color:var(--cb-btn-bg, #fff);
	color:var(--cb-btn-text, #333);
}

.cb-content .btn-btn-default:not([href]):hover,
.cb-content .btn.btn-default:hover {
	background-color:var(--cb-btn-hover-bg, #e0e0e0);
}

/* Mitigate problem when BS 2 CSS is loaded as well */
.cb-popover.fade {
	opacity: 1!important;
	transition:none!important;
}

.popover.fade.show {
	opacity: 1!important;
}

/* Mitigate a problem with J4 Casseopedia template */
.cb-popover {
	transition:none!important;
}

/* Mitigate problem when BS 2 CSS is loaded as well */
.cb-popover .arrow {
	border-width: unset!important;
}

.popover p:first-child {
	margin-top:0;
}

.popover p:last-child {
	margin-bottom:0;
}

/*.cb-content .form-control {*/
/*	margin-bottom:11px;*/
/*	border-radius:0;*/
/*}*/

.cb-content label {
	font-weight:normal;
}

.cb-content label.radio,
.cb-content label.checkbox {
	min-height:0;
	padding-left:0px;
}

.cb-content .modal {
	background: var(--cb-overlay, rgba(0,0,0,0.5));
	margin-left:0;
	top:0!important;
	left: 0!important;
	width:100%!important;
}

.cb-content .modal-content>.close {
	cursor: pointer;
	z-index: 20;
	position: absolute;
	top: 5px;
	right: 10px;
	float: none;
}

.cb-content .modal-body {
	width: auto;
	position: relative;
	max-height: 1000000px;
	padding: 0;
}

.cb-content .clear {
	clear: both;
}

.cb-content .rating-stars {
	margin-left:-1px;
	margin-right:-1px;
}

.cb-content .rating-star {
	display: inline-block;
	font-size: 20px;
	padding: 0 1px;
}

.cb-content .rating-star:before {
	font-family: "Font Awesome 5 Free";
}

.cb-content .rating-star.empty-star:before {
	content:"\f005";
	font-weight:normal;
}

.cb-content .rating-star.half-star:before {
	content:"\f5c0";
	font-weight: 800;
}

.cb-content .rating-star.full-star:before {
	content:"\f005";
	font-weight: 800;
}

.view-record .order-overview-table {
	margin: 0 -7px 0;
}

.view-record .order-overview .delivery-title,
.view-record .order-overview .payment-title {
	font-weight:bold;
}

.view-record .order-overview .item-price {
	text-align:right;
	white-space:nowrap;
}

.view-record .sub-total,
.view-record .grand-total {
	font-weight:bold;
}

.cb-content .quick-edit-buttons a,
.cb-content .quick-edit-buttons a:hover {
	cursor:pointer;
	text-decoration:none;
	border:none;
}

.modal .view-position {
	padding:20px 20px 10px;
}

.view-position .position-image img {
	display:block;
}

.view-position .position-product-title {
	font-weight:bold;
	font-size:1.2em;
	margin:5px 0;
}

.view-position .position-product-sku {
	color:var(--cb-text-faint, #ccc);
	margin:5px 0;
}

.view-position .position-element-sku {
	max-width:90px;
	word-break:break-all;
}

.view-position .position-selection-table {
	margin: 0 -7px 0;
}

.view-position .position-element-title {
	border-right:none;
}

.view-position .position-element-title:after {
	content: ':';
}

.view-position .position-element-output-value {
	border-left:none;
}

.view-position .position-total {
	font-weight:bold;
}

.view-position .price-field {
	white-space:nowrap;
}

.view-user .wrapper-buttons {
	margin:20px 0;
}

/* The standalone login and register pages (view=user, layout=login/register) */
#layout-login .cb-login-form,
#layout-register .cb-register-form {
	max-width:420px;
}

#layout-login .cb-login-form .form-floating,
#layout-register .cb-register-form .form-floating {
	margin:10px 0;
}

#layout-login .cb-login-messages,
#layout-register .cb-register-messages {
	margin:10px 0;
}

#layout-login .cb-login-messages:empty,
#layout-register .cb-register-messages:empty {
	display:none;
}

#layout-login .cb-login-register-hint {
	margin-top:12px;
}

#layout-register .cb-form-buttons {
	display:flex;
	justify-content:space-between;
	margin-top:12px;
}

.view-product .wrapper-buttons {
	margin:20px 0;
}

/* Chosen overrides */

.cb-content .chosen-container {
	font-size: 14px;
}

.cb-content .chosen-container a {
	color:inherit;
}

.cb-content .chosen-container .chosen-single {
	border-radius: 0;
	background: none;
	height: 34px;
	line-height: 34px;
	text-decoration: none;
	padding-left:12px;
	border: 1px solid var(--bs-border-color, var(--cb-border-strong, #ccc));
	background:var(--cb-input-bg, #fff);
	box-shadow: var(--cb-inset-shadow, inset 0 1px 1px rgba(0, 0, 0, 0.075));
}

.cb-content .chosen-container-active.chosen-with-drop .chosen-single {
	background:var(--cb-input-bg, #fff);
	border-color:var(--cb-border-strong, #ccc);
}

.cb-content .chosen-container-single .chosen-single div b {
	background:none!important;
}

.input-group-text.fas,
.input-group-text.fa {
	font-weight:900;
}

.cb-content .chosen-container-single .chosen-single div b:before {
	font-family: "Font Awesome 5 Free";
	content: "\f0d7";
	font-weight: 800;
}

.cb-content .chosen-container-active.chosen-with-drop .chosen-single div b:before {
	font-family: "Font Awesome 5 Free";
	content: "\f0d8";
	font-weight: 800;
}

.cb-content .chosen-container .chosen-drop {
	border-color:var(--cb-border-strong, #ccc);
	box-shadow: none;
	border-radius: 0;
}

.cb-content .chosen-container .chosen-results li.highlighted {
	background-color: var(--cb-surface-3, #eee);
	background-image:none;
	color:inherit;
}

/* Wordpress overrides */

body.single-cb_list .post-navigation,
body.single-cb_product .post-navigation,
body.single-cb_page .post-navigation,
body.single-cb_internal .post-navigation {
	display:none!important;
}

body.single-cb_list .entry-header,
body.single-cb_product .entry-header,
body.single-cb_page .entry-header,
body.single-cb_internal .entry-header {
	display:none!important;
}

.cb-content a.fa {
	text-decoration:none!important;
}

.cb-content a.btn {
	text-decoration:none!important;
	text-transform: none;
	letter-spacing: normal;
}

.view-adminoptionassignment .in-frontend .task-store {
	display:none!important;
}

.intra-list-modal .view-adminoptionassignment .in-frontend .task-store {
	display:inline-block!important;
}


.view-rfq .wrapper-buttons {
	margin-top:20px;
	margin-bottom:20px;
}

.view-rfq .form-control[type=text],
.view-rfq .form-control[type=password],
.view-rfq textarea.form-control{
	border-radius:0;
}
/* Tom Select: the search field of the dropdown_input plugin ==========================================
 *
 * The plugin puts a real input at the top of an open dropdown; the magnifier is what makes it read as a
 * search field at a glance instead of a stray text box. Loaded for the storefront and the admin alike,
 * since both enhance their long selects the same way (configbox/customerform, configbox/admin).
 * The placeholder text comes from data-text-search on the view wrapper.
 * ================================================================================================== */

/* The wrapper class is repeated to out-weigh the vendor theme, which loads after this file and resets
   the field with a `background: transparent` shorthand at the same specificity. */
.ts-wrapper.plugin-dropdown_input .dropdown-input {
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235a6b75' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.6 10.6 14 14' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left calc(0.7 * var(--cbx-rem, 1rem)) center;
	background-size: 14px 14px;
	padding-left: calc(2.1 * var(--cbx-rem, 1rem));
}
