/*!
Theme Name: ecommerce
Theme URI:
Author: Dmitry Kozlov
Author URI: https://t.me/mr_kobra
Version: 1.0.0
Tested up to: 7.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
*/

.custom_extra_select label {
	display: flex;
	align-items: center;
	column-gap: 12px;
	cursor: pointer;
}

.custom_extra_select label input[type="radio"] {
	display: none;
}

.custom_extra_select label .custom_extra_image {
	width: 120px;
	height: 60px;
	flex-shrink: 1;
}

.custom_extra_select label .custom_extra_image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	border-radius: 3px;
}

.custom_extra_select label .custom_extra_value {
	font-weight: 400;
	font-size: 16px;
	line-height: 170%;
	color: #181C23;
	transition: color .3s ease;
	white-space: nowrap;
}

.custom_extra_select .custom_extra_select_options {
	border: 1px solid #DCDCDC;
	border-radius: 3px;
	display: none;
	position: absolute;
	left: 0;
	min-width: 100%;
	background-color: #ffffff;
	z-index: 2;
	top: calc(100% - 1px);
	padding: 10px 0;
	box-shadow: 0px 5px 6px 0px rgb(0 0 0 / 5%);
	box-sizing: border-box;
}

.custom_extra_select label.custom_extra_selected_option {
	padding: 8px 18px;
	border: 1px solid #dbdbdb;
	border-radius: 3px;
	background-image: url(/wp-content/themes/ecommerce/assets/select_arrow.svg);
	background-repeat: no-repeat;
	background-position-y: 50%;
	background-position-x: calc(100% - 14px);
	background-size: 14px;
	padding-right: 40px;
	animation-duration: .5s;
	position: relative;
	z-index: 3;
}
.custom_extra_select label.custom_extra_selected_option:hover {
	animation-name: arrow_select;
}
.custom_extra_select:hover label.custom_extra_selected_option {
	border-color: rgb(91 152 217 / 52%);
}
.custom_extra_select .custom_extra_select_options label:hover .custom_extra_value {
	color: #5b98d9;
}
.custom_extra_select {
	position: relative;
	width: 100%;
}
.custom_extra_select .custom_extra_select_options label:hover {
	background-color: rgb(91 152 217 / 6%);
}

.custom_extra_select .custom_extra_select_options label {
	transition: background-color .3s ease;
	padding: 5px 18px;
}
.custom_extra_select.custom_extra_select--only_option label.custom_extra_selected_option {
	background: none;
	cursor: default;
}

.custom_extra_select.custom_extra_select--only_option:hover label.custom_extra_selected_option {
	border-color: #DCDCDC;
}
.pd_option_text {
    margin-top: 20px;
}