/* JyotiDeep storefront - Select2 dressed like the site's own dropdowns (.jd-field--select, .jd-f select). */
.select2-container { font-family: inherit; max-width: 100%; }
.select2-container--default .select2-selection--single {
	height: 50px; display: flex; align-items: center; background: var(--jd-white); border: 1px solid var(--jd-line); border-radius: 12px;
	transition: border-color .2s, box-shadow .2s; outline: 0;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	flex: 1; padding: 0 44px 0 16px; line-height: 48px; font-size: 16px; color: var(--jd-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--jd-muted); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 12px; top: 0; width: 20px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b {
	border: 0; width: 18px; height: 18px; margin: 0; left: 0; top: 15px; transition: transform .2s;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6F62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border: 0; transform: rotate(180deg); }
.select2-container--default .select2-selection--single:hover { border-color: var(--jd-sand-2); }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--jd-ink); box-shadow: 0 0 0 3px rgba(31, 26, 23, .08); }
.jd-f .select2-container, .jd-form .select2-container { width: 100% !important; }

/* the pill-shaped filters above the product grid: the wrapper already draws the border and the chevron */
.jd-field--select .select2-container { min-width: 150px; }
.jd-field--select .select2-container .select2-selection--single { height: 42px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; }
.jd-field--select .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; font-size: 14.5px; padding: 0 40px 0 18px; }
.jd-field--select .select2-container .select2-selection--single .select2-selection__arrow { display: none; }
.jd-field--select:focus-within, .jd-field--select:hover { border-color: var(--jd-sand-2); }
.jd-field--select:focus-within { border-color: var(--jd-ink); box-shadow: 0 0 0 3px rgba(31, 26, 23, .08); }

/* the list that opens (it sits in <body>, above drawers and pop-ups) */
.select2-container--open { z-index: 9999; }
.select2-container--open .select2-dropdown { z-index: 9999; }
.select2-dropdown {
	border: 1px solid var(--jd-line); border-radius: 14px; background: var(--jd-white); overflow: hidden;
	box-shadow: 0 18px 40px rgba(31, 26, 23, .16); margin-top: 6px;
}
.select2-container--default .select2-dropdown--below { border-top: 1px solid var(--jd-line); }
.select2-container--default .select2-search--dropdown { padding: 10px 10px 6px; }
.select2-container--default .select2-search--dropdown .select2-search__field {
	min-height: 40px; padding: 0 14px; border: 1px solid var(--jd-line); border-radius: 999px; font: inherit; font-size: 15px; color: var(--jd-ink); outline: 0;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--jd-ink); box-shadow: 0 0 0 3px rgba(31, 26, 23, .08); }
.select2-container--default .select2-results__options { max-height: 280px; padding: 6px; }
.select2-container--default .select2-results__option { padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--jd-ink); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--jd-sand); color: var(--jd-ink); }
.select2-container--default .select2-results__option[aria-selected=true] { background: rgba(218, 37, 28, .08); color: var(--jd-red); font-weight: 600; }
.select2-container--default .select2-results__option--disabled { color: var(--jd-muted); opacity: .6; }
.select2-dropdown { min-width: 190px; }

/* the filter boxes keep one steady width, wide enough for the longest option ("Price: high to low") */
.jd-field--select .select2-container { width: 215px !important; }
/* Select2's own rule limits the list to 200px with a scrollbar; show all of a short list */
.select2-container--default .select2-results > .select2-results__options { max-height: 320px; }
