/* Shared form dropdown: opt in through enhanceFormDropdowns(root). */
#ApplyFullForm, #cashcard.shortform-redesign .sf-form-card {
    --form-dropdown-font-size:22px;
    --form-dropdown-line-height:26px;
}
/* Reserve the same field height before the module enhances the native select. */
#cashcard.shortform-redesign select:not([multiple]):not([size]) {
    height:var(--form-dropdown-control-height,44px)!important;
    min-height:var(--form-dropdown-control-height,44px);
    border-radius:8px!important;
    font-family:dboz,sans-serif!important;
}
.form-dropdown [hidden],.form-dropdown-menu[hidden],.form-dropdown-option[hidden] {
    display:none!important;
}
.form-dropdown,.form-dropdown-trigger,.form-dropdown-menu,.form-dropdown-option {
    box-sizing:border-box;
}
/* Styled option lists share the field dimensions, without changing form height. */
.form-dropdown {
    position:relative;
    width:100%;
    min-width:0;
}
select.form-dropdown-native {
    position:absolute;
    inset:0;
    width:100%;
    height:var(--form-dropdown-control-height,44px);
    opacity:0;
    pointer-events:none;
}
.form-dropdown-trigger {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    width:100%;
    height:var(--form-dropdown-control-height,44px);
    padding:6px 12px;
    border:1px solid #ccc;
    border-radius:8px;
    background:#fff;
    color:#333;
    font-family:dboz,sans-serif!important;
    font-size:var(--form-dropdown-font-size,24px);
    font-weight:400;
    line-height:var(--form-dropdown-line-height,28px);
    text-align:left;
    box-shadow:none;
    cursor:pointer;
    transition:border-color .12s,box-shadow .12s;
}
.form-dropdown-text {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.form-dropdown-trigger svg {
    width:18px;
    height:18px;
    flex-shrink:0;
    fill:none;
    stroke:#111;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .12s;
}
.form-dropdown.is-placeholder .form-dropdown-trigger {
    color:#999;
}
.form-dropdown-trigger:hover:not(:disabled) {
    border-color:#0085CA;
}
.form-dropdown-trigger:focus-visible,.form-dropdown.is-open .form-dropdown-trigger {
    outline:0!important;
    border-color:#0085CA;
    box-shadow:0 0 0 3px rgb(0 133 202 / 12%);
}
.form-dropdown.is-invalid .form-dropdown-trigger {
    border-color:#ff3535;
}
.form-dropdown-trigger:disabled {
    color:#999;
    background:#f5f7f8;
    cursor:default;
}
.form-dropdown.is-open {
    z-index:30;
}
.form-dropdown.is-open .form-dropdown-trigger svg {
    transform:rotate(180deg);
}
.form-dropdown-menu {
    position:absolute;
    top:calc(100% + 6px);
    left:0;
    right:0;
    max-height:264px;
    overflow:auto;
    overscroll-behavior:contain;
    padding:4px;
    border:1px solid #dce6ed;
    border-radius:10px;
    background:#fff;
    box-shadow:0 8px 24px rgb(0 60 113 / 14%);
    scrollbar-width:thin;
    scrollbar-color:#b9cad6 transparent;
}
.form-dropdown.opens-up .form-dropdown-menu {
    top:auto;
    bottom:calc(100% + 6px);
}
.form-dropdown-option {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    min-height:40px;
    padding:6px 8px;
    border-radius:6px;
    color:#333;
    font-family:dboz,sans-serif;
    font-size:var(--form-dropdown-font-size,24px);
    line-height:var(--form-dropdown-line-height,28px);
    font-weight:400;
    cursor:pointer;
}
.form-dropdown-option.is-placeholder {
    color:#999;
}
.form-dropdown-option[aria-selected="true"] {
    color:#003c71;
    background:#e6f3fa;
}
.form-dropdown-option:hover:not([aria-disabled="true"]),.form-dropdown-option.is-active {
    color:#003c71;
    background:#eef7fc;
}
.form-dropdown-option[aria-disabled="true"] {
    color:#aaa;
    cursor:default;
}
.form-dropdown-option > span:first-child {
    min-width:0;
    overflow-wrap:anywhere;
}
.form-dropdown-check {
    flex-shrink:0;
    visibility:hidden;
    color:#0085CA;
    font-family:Arial,sans-serif;
    font-size:16px;
}
.form-dropdown-option[aria-selected="true"] .form-dropdown-check {
    visibility:visible;
}
@media(prefers-reduced-motion:reduce) {
    .form-dropdown-trigger,.form-dropdown-trigger svg {
        transition:none;
    }
}
.form-dropdown-trigger:disabled {
    opacity:1;
}
