/* Horizon form look: fields, choice cards, submit button and dropdowns for the lead forms (.emo-form) and the faculty finder (.emo-finder).
   Loaded on every page from BaseLayout after /theme/horizon.css (not pruned: purge-css only touches theme/build/*). Uses the Horizon tokens.
   The dropdown library CSS (/js/vendor/tom-select.css) is added by /js/ui-select.js only on pages that have a dropdown, AFTER this file,
   so the dropdown rules below use extra classes (.ts-wrapper.emo-ts, .ts-dropdown.emo-dd) to win. Open lists may sit on <body>, so they never depend on .emo-form.
   Logical properties keep RTL right. */
.emo-form,.emo-finder{--ui-primary:var(--color-brand,#006baf);--ui-ring:rgba(30,139,224,.22);--ui-text:var(--color-text,#0a1a2f);--ui-border:var(--color-border-strong,#c9d2de);--ui-border-hover:#5b6b80;--ui-error:var(--color-danger,#c2253a);--ui-radius:var(--radius-control,14px);--ui-h:3.25rem;--ui-tint:var(--color-brand-subtle,#e8f2fb)}
.emo-form{--emo-primary:var(--color-brand,#006baf);--emo-text:var(--color-text,#0a1a2f);--emo-error:var(--color-danger,#c2253a);font-family:var(--font-sans,inherit)}
/* ---------- Text fields ---------- */
.emo-form input[type=text],.emo-form input[type=email],.emo-form input[type=tel],.emo-form input[type=date],.emo-form textarea,.emo-form select:not(.tomselected){width:100%;box-sizing:border-box;font:inherit;font-weight:400;line-height:1.4;color:var(--ui-text);background-color:#fff;border:1.5px solid var(--ui-border);border-radius:var(--ui-radius);padding:.7rem 1rem;min-height:var(--ui-h);transition:border-color .15s,box-shadow .15s}
/* iPhone/iPad Safari: the native date box keeps its own width and height and spills past the form edge. iOS only (other browsers keep their calendar icon). */
@supports (-webkit-touch-callout:none){.emo-form input[type=date]{-webkit-appearance:none;appearance:none;display:block;min-inline-size:0;max-inline-size:100%;block-size:var(--ui-h);text-align:start}.emo-form input[type=date]::-webkit-date-and-time-value{text-align:start;min-block-size:1.4em}}
.emo-form textarea{min-height:7.5rem;resize:vertical}
.emo-form input::placeholder,.emo-form textarea::placeholder{color:#5b6b80;opacity:1;font-weight:300}
.emo-form input:hover:not(:focus):not([readonly]),.emo-form textarea:hover:not(:focus),.emo-form select:not(.tomselected):hover:not(:focus){border-color:var(--ui-border-hover)}
.emo-form input:focus,.emo-form textarea:focus,.emo-form select:focus{outline:0;border-color:var(--ui-primary);box-shadow:0 0 0 4px var(--ui-ring)}
.emo-form input[readonly]{background:#f5f7fa;color:#3d4d63}
.emo-form select[multiple]:not(.tomselected){min-height:9rem}
/* Before the dropdown upgrade (JS on, library not failed) the multi-select looks like its one-line .ts-control: same box, placeholder, chevron. Nothing jumps on upgrade.
   It stays clickable; once a choice is made before the upgrade, the native list comes back so the choice is visible. */
@media(scripting:enabled){.emo-form:not([data-ts-failed]) .ginput_container_multiselect{position:relative}
.emo-form:not([data-ts-failed]) select[multiple]:not(.tomselected):not(:has(option:checked)){display:block;appearance:none;block-size:var(--ui-h);min-height:0;overflow:hidden;color:transparent;padding-block:.35rem;padding-inline-end:2.4rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23112337' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");background-size:16px 12px;background-repeat:no-repeat;background-position:right .85rem center}
.emo-form:not([data-ts-failed]) .ginput_container_multiselect:not(:has(.tomselected)):not(:has(option:checked))::before{content:attr(data-placeholder);position:absolute;z-index:1;inset-block-start:50%;inset-inline:calc(.85rem + 1.5px) 2.4rem;transform:translateY(-50%);color:#5b6b80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;line-height:1.4}}
.emo-form select:not(.tomselected):not([multiple]){appearance:none;padding-inline-end:2.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23112337' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .9rem center}
/* Empty choice: grey hint, like the upgraded box (the options themselves keep the normal text colour) */
.emo-form select:not(.tomselected):not([multiple]):has(>option[value=""]:checked){color:#5b6b80}.emo-form select:not(.tomselected):not([multiple]) option{color:var(--ui-text)}
.emo-form .gfield_error input[type]:not([type=radio]):not([type=checkbox]),.emo-form .gfield_error textarea,.emo-form .gfield_error select:not(.tomselected),.emo-form .gfield_error .ts-control{border-color:var(--ui-error);background-color:var(--color-danger-subtle,#fdeef0)}
.emo-form .gfield_error input:focus,.emo-form .gfield_error textarea:focus{box-shadow:0 0 0 4px rgba(194,37,58,.18)}
.emo-form .gfield_validation_message{margin-top:.35rem}
.emo-form .gfield_label,.emo-form legend{margin-bottom:.5rem;font-weight:500;font-size:.9375rem;color:var(--ui-text)}
.emo-form .gform_fields{gap:1.5rem 1rem}
/* Hidden inputs (tracking, apply-link details) still post; their wrappers must not take a grid row each, or the gaps add up to empty bands */
.emo-form .gform_hidden{display:none}
/* A click anywhere in the field (label and padding included) opens or focuses it: /theme/shell.js. Show that it is clickable. */
.emo-form .gfield:not(.gfield--type-radio):not(.gfield--type-checkbox):not(.gfield--type-consent){cursor:pointer}
.emo-form .gfield input,.emo-form .gfield textarea{cursor:text}
/* ---------- Choice cards: radios are cards (Student / Parent, Father / Mother), the whole <label> is the click target ---------- */
.emo-form .gfield_radio{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
.emo-form .gfield_radio:not(:has(>:nth-child(4))){grid-template-columns:repeat(auto-fit,minmax(min(100%,10.5rem),1fr))}
.emo-form .ginput_container_image_choice .gfield_radio{grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr))}
.emo-form .gfield_checkbox{display:flex;flex-direction:column;gap:.6rem}
.emo-form .gchoice{position:relative;display:flex;align-items:center;gap:.7rem;cursor:pointer;margin:0}
.emo-form .gfield-choice-input{appearance:none;flex:none;margin:0;inline-size:1.375rem;block-size:1.375rem;border:1.5px solid var(--ui-border-hover);background:#fff;display:grid;place-content:center;cursor:pointer;transition:border-color .15s,box-shadow .15s,background-color .15s}
.emo-form .gfield-choice-input[type=radio]{border-radius:50%}
.emo-form .gfield-choice-input[type=checkbox]{border-radius:7px}
.emo-form .gfield-choice-input[type=radio]::before{content:"";inline-size:.75rem;block-size:.75rem;border-radius:50%;background:var(--ui-primary);transform:scale(0);transition:transform .12s}
.emo-form .gfield-choice-input[type=checkbox]::before{content:"";inline-size:.7rem;block-size:.4rem;border:solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg) scale(0) translate(1px,-1px);transition:transform .12s}
.emo-form .gfield-choice-input[type=checkbox]:checked{background:var(--ui-primary);border-color:var(--ui-primary)}
.emo-form .gfield-choice-input[type=radio]:checked{border-color:var(--ui-primary)}
.emo-form .gfield-choice-input[type=radio]:checked::before{transform:scale(1)}
.emo-form .gfield-choice-input[type=checkbox]:checked::before{transform:rotate(-45deg) scale(1) translate(1px,-1px)}
.emo-form .gchoice .gform-field-label{cursor:pointer;margin:0;font-weight:400;color:var(--ui-text)}
.emo-form .gfield-choice-input:focus-visible{outline:0;box-shadow:0 0 0 4px var(--ui-ring)}
/* Radio choice = card. Selected: solid 2px brand border, tint, bold text, and a tick badge in the corner (never colour alone). */
.emo-form .gfield_radio .gchoice{min-height:4.5rem;padding:14px 16px;border:1.5px solid var(--ui-border);border-radius:var(--ui-radius);background:#fff;transition:border-color .15s,background-color .15s,box-shadow .15s}
.emo-form .gfield_radio .gchoice:hover{border-color:var(--ui-border-hover);background:#f5f7fa}
.emo-form .gfield_radio .gchoice:has(input:checked){border:2px solid var(--ui-primary);background:var(--ui-tint);padding:13.5px 15.5px}
.emo-form .gfield_radio .gchoice:has(input:checked) .gform-field-label{color:var(--ui-primary);font-weight:600}
.emo-form .gfield_radio .gchoice::after{content:"";position:absolute;inset-block-start:-10px;inset-inline-end:-10px;inline-size:1.625rem;block-size:1.625rem;border-radius:50%;background:var(--ui-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23fff'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center/.95rem no-repeat;box-shadow:0 0 0 3px #fff;transform:scale(0);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.emo-form .gfield_radio .gchoice:has(input:checked)::after{transform:scale(1)}
.emo-form .gfield_radio .gchoice:has(input:focus-visible){outline:3px solid var(--color-focus,#1e8be0);outline-offset:3px}
.emo-form .gchoice--image{flex-direction:column;justify-content:flex-start;box-sizing:border-box;padding:.9rem .75rem .75rem;text-align:center}
.emo-form .gchoice--image .gfield-choice-input{position:absolute;inset-block-start:.6rem;inset-inline-start:.6rem}
.emo-form .gchoice--image .gform-field-label{font-weight:500}
.emo-form .gfield-choice-icon{display:block;inline-size:56px;block-size:56px;margin:.5rem auto .6rem;color:#006baf}
.emo-form .gchoice--image:has(:checked) .gfield-choice-icon{color:#06182e}
.emo-form .gfield_error .gfield_radio .gchoice{border-color:var(--ui-error);background:var(--color-danger-subtle,#fdeef0)}
/* ---------- Submit button (the Horizon .btn look, brand blue: coral is only for "Book a free call") ---------- */
.emo-form .gform_button.emo-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:3.5rem;padding:.8rem 2.2rem;border:0;border-radius:var(--ui-radius);color:#fff!important;font:inherit;font-weight:500;font-size:1.0625rem;line-height:1.2;cursor:pointer;background:var(--color-brand,#006baf)!important;transition:background-color .2s,box-shadow .2s,transform .1s}
.emo-form .gform_button.emo-btn:hover:not(:disabled){background:var(--color-brand-hover,#005a94)!important;box-shadow:0 10px 24px -10px rgba(0,90,148,.6)}
.emo-form .gform_button.emo-btn:active:not(:disabled){transform:translateY(1px)}
.emo-form .gform_button.emo-btn:focus-visible{outline:3px solid var(--color-focus,#1e8be0);outline-offset:3px}
.emo-form .gform_button.emo-btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.emo-form .gform_wrapper[aria-busy=true] .gform_button.emo-btn{opacity:.85;cursor:progress}
.emo-form .gform_wrapper[aria-busy=true] .gform_button.emo-btn::after{content:"";inline-size:1rem;block-size:1rem;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:emo-spin .7s linear infinite}
@keyframes emo-spin{to{transform:rotate(360deg)}}
@container (max-width:34rem){.emo-form .gform_button.emo-btn{inline-size:100%}}
@media(prefers-reduced-motion:reduce){.emo-form .gform_button.emo-btn,.emo-form input,.emo-form .gchoice,.emo-form .gchoice::after{transition:none}.emo-form .gform_wrapper[aria-busy=true] .gform_button.emo-btn::after{animation-duration:2s}}
/* ---------- Dropdowns (Tom Select restyled to the Horizon dropdown, see /js/ui-select.js) ---------- */
.ts-wrapper.emo-ts{inline-size:100%;position:relative}
.ts-wrapper.emo-ts .ts-control{min-block-size:var(--ui-h,3.25rem);box-sizing:border-box;padding-block:.45rem;padding-inline:1rem 2.75rem;border:1.5px solid var(--color-border-strong,#c9d2de);border-radius:var(--radius-control,14px);background:#fff;box-shadow:none;font:inherit;font-weight:400;line-height:1.3;color:var(--color-text,#0a1a2f);cursor:pointer;display:flex;flex-wrap:nowrap;align-items:center;gap:.3rem;transition:border-color .15s,box-shadow .15s}
.ts-wrapper.emo-ts .ts-control:hover{border-color:#5b6b80}
.ts-wrapper.emo-ts.focus .ts-control,.ts-wrapper.emo-ts.dropdown-active .ts-control{border-color:var(--color-brand,#006baf);box-shadow:0 0 0 4px rgba(30,139,224,.22)}
.ts-wrapper.emo-ts .ts-control .item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-inline-size:100%;flex:1 1 auto;min-inline-size:0}
.ts-wrapper.emo-ts .ts-control>input{font:inherit;color:inherit}
.ts-wrapper.emo-ts .ts-control .items-placeholder{cursor:pointer;border:0;background:none;min-inline-size:2rem;flex:1 1 4rem;color:#5b6b80;font-weight:300;pointer-events:none;padding:0}
.ts-wrapper.emo-ts.has-items .emo-ts-hint{display:none}
/* Keep the hint in the box while the list is open (the dropdown_input plugin hides it); it goes once a choice is made */
.ts-wrapper.emo-ts.plugin-dropdown_input.dropdown-active:not(.has-items) .items-placeholder{display:inline-block!important}
/* Chevron: Phosphor caret-down, flips when open */
.ts-wrapper.emo-ts .ts-control::after,.ts-wrapper.emo-ts.single .ts-control::after,.ts-wrapper.emo-ts.single.dropdown-active .ts-control::after{content:"";display:block;position:absolute;inset-block-start:50%;inset-inline-end:1rem;margin:0;inline-size:1rem;block-size:1rem;border:0;background:#3d4d63;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center/contain no-repeat;transform:translateY(-50%);transition:transform .26s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.ts-wrapper.emo-ts.dropdown-active .ts-control::after,.ts-wrapper.emo-ts.single.dropdown-active .ts-control::after{transform:translateY(-50%) rotate(180deg)}
/* Multi: the closed box reads "3 universities"; the picks are chips under the box (built by ui-select.js) */
.ts-wrapper.emo-ts--multi .ts-control>.item,.ts-wrapper.emo-ts--multi .ts-control .items-placeholder{display:none!important}
.emo-ts__summary{flex:1 1 auto;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.emo-ts--multi.is-empty .emo-ts__summary{color:#5b6b80;font-weight:300}
.emo-chips{display:flex;flex-wrap:wrap;gap:8px;margin-block-start:10px}
.emo-chips:empty{display:none}
.emo-chips .chip{min-height:34px;padding:4px 8px 4px 14px;padding-inline:14px 10px;background:var(--color-brand-subtle,#e8f2fb);border-color:transparent;color:var(--color-brand,#006baf);font-size:.875rem;font-weight:500}
.emo-chips .chip:hover{background:#d8e9f8;border-color:transparent}
/* Open list: panel, search box, options */
.ts-dropdown.emo-dd{z-index:80;margin-block-start:8px;margin-top:8px;padding:6px;border:1px solid var(--color-border,#e3e8ef);border-radius:18px;background:#fff;box-shadow:0 32px 64px -24px rgba(6,24,46,.38);overflow:hidden;color:var(--color-text,#0a1a2f);font-size:.9375rem;font-weight:400;animation:emo-dd-in .16s cubic-bezier(.2,.8,.2,1)}
@keyframes emo-dd-in{from{opacity:0;transform:translateY(-6px)}}
@media(prefers-reduced-motion:reduce){.ts-dropdown.emo-dd{animation:none}}
.emo-dd .dropdown-input-wrap{position:relative;padding:2px 2px 8px;margin-block-end:6px;border:0;border-block-end:1px solid var(--color-border,#e3e8ef);background:none}
.emo-dd .dropdown-input-wrap::before{content:"";position:absolute;inset-inline-start:16px;inset-block-start:15px;inline-size:1.05rem;block-size:1.05rem;background:#5b6b80;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
.ts-dropdown.emo-dd .dropdown-input-wrap .dropdown-input{box-sizing:border-box;inline-size:100%;min-block-size:44px;padding-block:10px;padding-inline:42px 12px;border:1.5px solid var(--color-border-strong,#c9d2de);border-radius:12px;background:#f5f7fa;color:var(--color-text,#0a1a2f);font:inherit;font-size:.9375rem;box-shadow:none}
.ts-dropdown.emo-dd .dropdown-input::placeholder{color:#5b6b80;opacity:1}
.ts-dropdown.emo-dd .dropdown-input:focus{outline:0;border-color:var(--color-brand,#006baf);background:#fff;box-shadow:0 0 0 4px rgba(30,139,224,.18)}
.emo-dd .ts-dropdown-content{max-height:min(17rem,45vh);overscroll-behavior:contain;scrollbar-width:thin}
.ts-dropdown.emo-dd .option{display:flex;align-items:center;gap:14px;min-block-size:42px;padding:9px 12px;border-radius:10px;cursor:pointer;color:#3d4d63;font-size:.9375rem;font-weight:400}
.ts-dropdown.emo-dd .option.active{background:#f5f7fa;color:var(--color-text,#0a1a2f)}
.ts-dropdown.emo-dd .option.selected{background:var(--color-brand-subtle,#e8f2fb);color:var(--color-brand,#006baf);font-weight:500}
.ts-dropdown.emo-dd .option.selected.active{background:#d8e9f8}
.ts-dropdown.emo-dd:not(.emo-dd--multi) .option.selected::after{content:"";margin-inline-start:auto;flex:none;inline-size:1.1rem;block-size:1.1rem;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center/contain no-repeat}
.ts-dropdown.emo-dd .no-results{display:flex;justify-content:center;padding:20px 12px;color:#5b6b80;font-size:.875rem}
/* Checklist (multi): box, stays open, ticked first, footer with Clear and Done */
.ts-dropdown.emo-dd--multi .option.selected{background:transparent;color:var(--color-text,#0a1a2f);font-weight:500}
.ts-dropdown.emo-dd--multi .option.selected.active,.ts-dropdown.emo-dd--multi .option.active{background:#f5f7fa}
.emo-dd--multi .option input[type=checkbox]{appearance:none;flex:none;display:grid;place-content:center;margin:0;inline-size:20px;block-size:20px;border:1.5px solid var(--color-border-strong,#c9d2de);border-radius:6px;background:#fff;vertical-align:middle;cursor:pointer;transition:background-color .15s,border-color .15s}
.emo-dd--multi .option input[type=checkbox]::before{content:"";inline-size:10px;block-size:5px;border:solid #fff;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg);opacity:0}
.emo-dd--multi .option input[type=checkbox]:checked{background:var(--color-brand,#006baf);border-color:var(--color-brand,#006baf)}
.emo-dd--multi .option input[type=checkbox]:checked::before{opacity:1}
.emo-dd .option.is-last-picked{position:relative;margin-block-end:6px}
.emo-dd .option.is-last-picked::after{content:"";position:absolute;inset-inline:12px;inset-block-end:-4px;block-size:1px;background:var(--color-border,#e3e8ef)}
.emo-dd__foot{display:flex;align-items:center;gap:8px;padding:10px 6px 4px;margin-block-start:6px;border-block-start:1px solid var(--color-border,#e3e8ef)}
.emo-dd__count{flex:1;font-size:.8125rem;color:#3d4d63}
.emo-dd__clear,.emo-dd__done{appearance:none;border:0;cursor:pointer;font:inherit;font-size:.875rem;font-weight:500;border-radius:10px;padding:8px 14px;min-block-size:36px}
.emo-dd__clear{background:transparent;color:var(--color-brand,#006baf)}
.emo-dd__clear:disabled{color:#3d4d63;opacity:.5;cursor:default}
.emo-dd__done{background:var(--color-brand,#006baf);color:#fff}
.emo-dd__clear:focus-visible,.emo-dd__done:focus-visible{outline:2px solid var(--color-brand,#006baf);outline-offset:2px}
/* Phone country code: narrow control, wider menu that never leaves the screen */
.emo-form .emo-phone .ts-wrapper{flex:0 0 9rem;max-inline-size:9rem;inline-size:9rem}
.emo-form .emo-phone .ts-wrapper .ts-control{padding-inline:.9rem 2.2rem}
.emo-form .emo-phone .ts-dropdown{inline-size:min(22rem,calc(100vw - 3rem))}
@container (max-width:26rem){.emo-form .emo-phone .ts-wrapper{flex-basis:8rem;max-inline-size:8rem;inline-size:8rem}}
/* Native code picker (before the upgrade): same size as the wrapper, text clipped, so the number box never moves */
.emo-form .emo-phone select.emo-phone__code:not(.tomselected){flex:0 0 9rem;inline-size:9rem;max-inline-size:9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline-end:2.2rem}
@container (max-width:26rem){.emo-form .emo-phone select.emo-phone__code:not(.tomselected){flex-basis:8rem;inline-size:8rem;max-inline-size:8rem}}
@media(max-width:640px){.emo-form .ts-dropdown{max-inline-size:calc(100vw - 2rem)}}
/* Syria flag drawn by /js/ui-select.js (the green flag on every device) */
.emo-flag{vertical-align:-.12em;border-radius:2px}
.emo-dd__t{min-inline-size:0}
.ts-dropdown.emo-dd [data-selectable] .highlight{background:none;border-radius:0;font-weight:700;color:inherit}
