/**
 * TGWCFB Therapeutic Areas checkbox dropdown (HubSpot-style, no chips).
 * px only — theme html { font-size: 10px }.
 * Scoped to account registration / My Account / user-edit only.
 */

select.sb-tgwcfb-multiselect {
	display: none !important;
}

.form-row:has(select.sb-tgwcfb-multiselect) > .select2-container,
#tgwcfb-extra-fields .select2-container:has(+ select.sb-tgwcfb-multiselect),
select.sb-tgwcfb-multiselect + .select2-container {
	display: none !important;
}

.form-row:has(.sb-tgwcfb-ms),
#select_d80ff943_field {
	overflow: visible;
	position: relative;
	z-index: 5;
}

.form-row:has(.sb-tgwcfb-ms.is-open),
#select_d80ff943_field:has(.sb-tgwcfb-ms.is-open) {
	z-index: 20;
}

.sb-tgwcfb-ms {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.sb-tgwcfb-ms__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	height: 35px;
	min-height: 35px;
	max-height: 35px;
	padding: 0 10px;
	border: 1px solid #e6e6e6;
	border-radius: 4px;
	background: #ffffff;
	color: #222222;
	font-family: 'HKGrotesk-Regular', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 35px;
	text-align: left;
	cursor: pointer;
}

.sb-tgwcfb-ms__toggle:hover,
.sb-tgwcfb-ms__toggle:focus,
.sb-tgwcfb-ms.is-open .sb-tgwcfb-ms__toggle,
.sb-tgwcfb-ms__toggle.has-selection,
.sb-tgwcfb-ms__toggle.has-selection:hover,
.sb-tgwcfb-ms__toggle.has-selection:focus {
	border-color: #e6e6e6;
	background: #fcfcfc;
	color: #454545;
	font-weight: 400;
	outline: none;
	box-shadow: none;
}

.sb-tgwcfb-ms__label {
	display: block;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 400;
	line-height: 35px;
	color: #222222;
	font-family: 'HKGrotesk-Regular', sans-serif;
}

.sb-tgwcfb-ms__toggle.has-selection .sb-tgwcfb-ms__label {
	font-weight: 400;
	color: #222222;
}

.sb-tgwcfb-ms__count {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e6e6e6;
	color: #222222;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	font-family: 'HKGrotesk-Regular', sans-serif;
}

.sb-tgwcfb-ms__toggle.has-selection .sb-tgwcfb-ms__count {
	display: inline-flex;
}

.sb-tgwcfb-ms__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 10px;
	height: 6px;
	color: #888888;
	pointer-events: none;
}

.sb-tgwcfb-ms__toggle.has-selection .sb-tgwcfb-ms__arrow,
.sb-tgwcfb-ms.is-open .sb-tgwcfb-ms__arrow {
	color: #888888;
}

.sb-tgwcfb-ms__arrow svg {
	display: block;
	width: 10px;
	height: 6px;
}

.sb-tgwcfb-ms__dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	width: 100%;
	box-sizing: border-box;
	z-index: 30;
	padding: 8px;
	background: #ffffff;
	border: 1px solid #e6e6e6;
	border-radius: 4px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.sb-tgwcfb-ms.is-open .sb-tgwcfb-ms__dropdown {
	display: block;
}

.sb-tgwcfb-ms__options {
	max-height: 200px;
	overflow-y: auto;
	padding: 0;
	margin: 0;
}

.sb-tgwcfb-ms__option {
	display: flex;
	align-items: center;
	gap: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 4px 6px;
	margin: 0;
	cursor: pointer;
	font-family: 'HKGrotesk-Regular', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: #222222;
	background: transparent;
}

.sb-tgwcfb-ms__option:hover {
	background: #f5f5f5;
}

.sb-tgwcfb-ms__option span {
	font-size: 15px;
	font-weight: 400;
	font-family: 'HKGrotesk-Regular', sans-serif;
	line-height: 1.3;
	color: #454545;
}

.sb-tgwcfb-ms__option input[type="checkbox"] {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	min-width: 14px;
	min-height: 14px;
	margin: 0 8px 0 0;
	padding: 0;
	accent-color: #333333;
}

body.user-edit-php .sb-tgwcfb-ms,
body.profile-php .sb-tgwcfb-ms {
	max-width: 400px;
}

@media (max-width: 767px) {
	.sb-tgwcfb-ms__options {
		max-height: 180px;
	}
}
