.business-area-picker { position: relative; z-index: 2; }
.business-area-picker__control { position: relative; min-width: 0; }

.form-main .business-area-picker input.business-area-picker__search:not([type="checkbox"]):not([type="radio"]),
.business-area-picker__search {
    display: block; width: 100%; min-height: 48px; padding: 11px 78px 11px 42px;
    border: 1px solid #d9deea; border-radius: 10px; background: #fff; color: #252b3a;
    font: inherit; font-size: 14px !important; box-shadow: 0 1px 2px rgba(24, 32, 52, .04);
    outline: none; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.form-main .business-area-picker input.business-area-picker__search:hover,
.business-area-picker__search:hover { border-color: #aeb8d5; }
.form-main .business-area-picker input.business-area-picker__search:focus,
.business-area-picker__search:focus,
.business-area-picker:has(.business-area-picker__list:not([hidden])) .business-area-picker__search {
    border-color: #777fc1; background: #fff; box-shadow: 0 0 0 3px rgba(75, 82, 170, .1);
}
.business-area-picker__search::-webkit-search-cancel-button { display: none; }
.business-area-picker__single-value {
    position: absolute; z-index: 1; top: 50%; right: 54px; left: 42px;
    overflow: hidden; color: #252b3a; font-size: 14px; font-weight: 500;
    line-height: 20px; text-overflow: ellipsis; white-space: nowrap;
    transform: translateY(-50%); pointer-events: none;
}
.business-area-picker__single-value[hidden] { display: none !important; }
.business-area-picker__search-icon {
    position: absolute; z-index: 1; top: 14px; left: 14px; width: 20px; height: 20px;
    color: #8791aa; pointer-events: none;
}
.business-area-picker__clear {
    position: absolute; z-index: 1; top: 50%; right: 44px; width: 24px; height: 24px;
    padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8791aa;
    font-size: 20px; line-height: 24px; cursor: pointer; transform: translateY(-50%);
}
.business-area-picker__clear:hover,
.business-area-picker__clear:focus { background: #edf0f8; color: #374074; }
.business-area-picker__toggle {
    position: absolute; z-index: 1; top: 6px; right: 6px; width: 36px; height: 36px;
    padding: 8px; border: 0; border-left: 1px solid #e8ebf2; border-radius: 0 7px 7px 0;
    background: transparent; color: #65708a; cursor: pointer;
}
.business-area-picker__toggle svg { width: 20px; height: 20px; transition: transform .18s ease; }
.business-area-picker:has(.business-area-picker__list:not([hidden])) .business-area-picker__toggle svg { transform: rotate(180deg); }
.business-area-picker__toggle:hover,
.business-area-picker__toggle:focus-visible { color: #3e46a2; background: #f1f2fb; }
.business-area-picker__count {
    display: block; min-height: 18px; margin-top: 5px; color: #667085;
    font-size: 12px; font-weight: 600; text-align: right;
}
.business-area-picker--single .business-area-picker__count { display: none; }
.business-area-picker__list {
    position: absolute; z-index: 30; top: calc(48px + 8px); right: 0; left: 0;
    max-height: 350px; padding: 8px; overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid #dfe3ef; border-radius: 12px; background: #fff;
    box-shadow: 0 18px 38px rgba(30, 39, 80, .14);
}
.business-area-picker__list[hidden],
.business-area-picker__option[hidden],
.business-area-picker__clear[hidden],
.business-area-picker__selected-empty[hidden] { display: none !important; }
.business-area-picker__option {
    display: flex; align-items: center; min-height: 38px; gap: 10px; margin: 0;
    padding: 8px 10px; border-radius: 7px; color: #364057;
    font-size: 13px; line-height: 1.4; cursor: pointer;
}
.business-area-picker__option:hover,
.business-area-picker__option:has(input:focus-visible) { background: #f2f3fb; }
.business-area-picker__option:has(input:checked) { background: #eef0ff; color: #343b99; font-weight: 600; }
.form-main .business-area-picker .business-area-picker__option input,
.business-area-picker__option input {
    position: static; width: 17px; height: 17px; flex: 0 0 17px; margin: 0;
    accent-color: #4b52aa; cursor: pointer;
}
.business-area-picker__empty { display: block; padding: 20px 12px; color: #667085; text-align: center; }
.business-area-picker__selection { margin-top: 10px; }
.business-area-picker__selected-list { display: flex; flex-wrap: wrap; gap: 7px; }
.business-area-picker__selected-item {
    display: inline-flex; align-items: center; max-width: 100%; padding: 7px 10px;
    border: 1px solid #d9def9; border-radius: 7px; background: #f1f2ff;
    color: #343b99; font-size: 13px; line-height: 1.25;
}
.business-area-picker__selected-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.business-area-picker__selected-remove {
    margin-left: 6px; padding: 0; border: 0; background: transparent;
    color: inherit; font-size: 17px; line-height: 1; cursor: pointer;
}
.business-area-picker__selected-remove:hover,
.business-area-picker__selected-remove:focus-visible { color: #1f2575; }
.business-area-picker__selected-empty { color: #8791a4; font-size: 12px; }
.business-area-picker--single .business-area-picker__selection { display: none; }
.business-area-picker--enhanced .business-area-picker__native { display: none; }

/* Keep space for the search icon and actions after community-workspace form rules. */
.community-workspace .form-main .business-area-picker input.business-area-picker__search:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) {
    padding: 11px 78px 14px 42px;
}

.form-entry .business-area-picker--registration .business-area-picker__search {
    height: 85px; min-height: 85px; padding: 28px 82px 25px 54px;
    border: 1px solid transparent; border-radius: 15px; background: #f2f4f7;
    color: #252b3a; font-size: 19px !important; box-shadow: none;
}
.form-entry .business-area-picker--registration .business-area-picker__search:hover { border-color: #d9deea; }
.form-entry .business-area-picker--registration .business-area-picker__search:focus,
.form-entry .business-area-picker--registration:has(.business-area-picker__list:not([hidden])) .business-area-picker__search {
    border-color: #777fc1; background: #fff; box-shadow: 0 0 0 3px rgba(75, 82, 170, .1);
}
.form-entry .business-area-picker--registration .business-area-picker__search-icon { top: 33px; left: 25px; }
.form-entry .business-area-picker--registration .business-area-picker__single-value {
    right: 68px; left: 54px; font-size: 19px; line-height: 25px;
}
.form-entry .business-area-picker--registration .business-area-picker__toggle { top: 24px; right: 16px; }
.form-entry .business-area-picker--registration .business-area-picker__clear { right: 56px; }
.form-entry .business-area-picker--registration .business-area-picker__list { top: calc(85px + 8px); }

/* Isolate dropdown options from legacy .page label/input rules in style2.css. */
.page .business-area-picker--registration label.business-area-picker__option {
    display: flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    color: #364057;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}
.page .business-area-picker--registration label.business-area-picker__option:has(input:checked) {
    color: #343b99;
    font-weight: 600;
}
.page .business-area-picker--registration .business-area-picker__option input[type="radio"] {
    display: inline-block;
    width: 17px;
    min-width: 17px;
    height: 17px;
    min-height: 0;
    flex: 0 0 17px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

@media (max-width: 991px) {
    .form-entry .business-area-picker--registration .business-area-picker__search {
        height: 60px; min-height: 60px; padding: 18px 76px 10px 45px; font-size: 16px !important;
    }
    .form-entry .business-area-picker--registration .business-area-picker__search-icon { top: 20px; left: 17px; }
    .form-entry .business-area-picker--registration .business-area-picker__single-value {
        right: 58px; left: 45px; font-size: 16px; line-height: 21px;
    }
    .form-entry .business-area-picker--registration .business-area-picker__toggle { top: 12px; right: 8px; }
    .form-entry .business-area-picker--registration .business-area-picker__clear { right: 44px; }
    .form-entry .business-area-picker--registration .business-area-picker__list { top: calc(60px + 8px); }
}
@media (max-width: 600px) {
    .business-area-picker__list { max-height: min(320px, 55vh); }
    .form-main .business-area-picker input.business-area-picker__search { font-size: 16px !important; }
}
