.et_pb_db_shop_orderby,
.et_pb_db_shop_orderby .main-orderby {
	max-width: 200px;
}

.et_pb_db_shop_orderby.orderby-full-width,
.et_pb_db_shop_orderby.orderby-full-width .main-orderby,
.main-orderby.orderby-full-width {
	max-width: 100%;
	width: 100%;
}

.et_pb_db_shop_orderby.orderby-full-width .et_pb_contact_field,
.et_pb_db_shop_orderby.orderby-full-width .db-shop-orderby-select-wrap,
.et_pb_db_shop_orderby.orderby-full-width .db-shop-orderby-select,
.main-orderby.orderby-full-width .et_pb_contact_field,
.main-orderby.orderby-full-width .db-shop-orderby-select-wrap,
.main-orderby.orderby-full-width .db-shop-orderby-select {
	width: 100%;
	max-width: 100%;
	display: block;
	box-sizing: border-box;
}

.et_pb_db_shop_orderby.ui-sortable {
	max-width: 100%;
}

.et_pb_db_shop_orderby.align-right,
.main-orderby.align-right {
	margin-left: auto;
}

.et_pb_db_shop_orderby .db-shop-orderby-label {
	display: block;
	margin-bottom: 0.35em;
	font-size: 14px;
	line-height: 1.4;
}

/*
 * Caret lives on the select wrap (not .et_pb_contact_field) so top:50% is
 * relative to the select only — not label + select.
 */
.et_pb_db_shop_orderby .db-shop-orderby-select-wrap,
.main-orderby .db-shop-orderby-select-wrap {
	position: relative;
	display: block;
}

.et_pb_db_shop_orderby .db-shop-orderby-select.et_pb_contact_select,
.main-orderby .db-shop-orderby-select.et_pb_contact_select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: #eee;
	padding: 16px 40px 16px 16px;
	box-sizing: border-box;
	border: 0;
	border-radius: 0;
	width: 100%;
}

/* Kill AF/Machine caret on the field wrapper (would center against label+select). */
.et-db #et-boc .et-l .et_pb_db_shop_orderby .et_pb_contact_field[data-type=select]:after,
.et-db #et-boc .et-l .main-orderby .et_pb_contact_field[data-type=select]:after,
.et_pb_db_shop_orderby .et_pb_contact_field[data-type=select]:after,
.main-orderby .et_pb_contact_field[data-type=select]:after {
	content: none !important;
	display: none !important;
	border: 0 !important;
}

.et-db #et-boc .et-l .et_pb_db_shop_orderby .db-shop-orderby-select-wrap:after,
.et-db #et-boc .et-l .main-orderby .db-shop-orderby-select-wrap:after,
.et_pb_db_shop_orderby .db-shop-orderby-select-wrap:after,
.main-orderby .db-shop-orderby-select-wrap:after {
	content: "";
	position: absolute;
	top: 50%;
	right: 10px;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border: 6px solid transparent;
	border-top-color: #666;
	margin: 0;
	pointer-events: none;
}
