/* Shared opt-in SparkPage selector. Patient selector supplies the flag artwork/treatment. */
.ap-shell details.ap-language-picker--flags{position:relative;z-index:40}
.ap-shell details.ap-language-picker--flags>nav,.ap-shell details.ap-language-picker--flags>dialog.ap-language-picker__dialog{display:none;position:fixed;inset:auto;top:var(--ap-language-top,80px);right:var(--ap-language-right,16px);bottom:auto;left:auto;width:244px;max-width:calc(100vw - 32px);max-height:var(--ap-language-max-height,calc(100dvh - 96px));overflow-y:auto;overscroll-behavior:contain;margin:0;padding:10px;border:1px solid #dedcd6;border-radius:20px;background:#fff;box-shadow:0 12px 36px #132b4924;transform-origin:top right}
.ap-shell details.ap-language-picker--flags[open]>nav,.ap-shell details.ap-language-picker--flags>dialog.ap-language-picker__dialog[open]{display:block}
.ap-shell details.ap-language-picker--flags .ap-language-picker__heading{display:flex;position:sticky;top:-10px;align-items:center;justify-content:space-between;gap:8px;padding:0 0 6px 10px;background:#fff;font-size:16px;font-weight:650;color:#132b49}
.ap-shell details.ap-language-picker--flags [data-language-picker-close]:not([hidden]){display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;border-radius:50%;background:#eef2f6;color:#132b49;cursor:pointer}
.ap-shell details.ap-language-picker--flags [data-language-picker-close] svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.ap-shell details.ap-language-picker--flags a.ap-language-picker__option{display:grid;grid-template-columns:32px minmax(0,1fr) 1.25em;align-items:center;gap:12px;min-height:54px;padding:10px 12px;border-radius:12px;color:#132b49;font-size:17px;line-height:1.4;text-decoration:none}
.ap-shell details.ap-language-picker--flags a.ap-language-picker__option[aria-current]{background:#e7f1ff;font-weight:650}
.ap-shell details.ap-language-picker--flags a.ap-language-picker__option:hover{background:#eef3f8}
.ap-shell .ap-language-picker--flags .ap-language-picker__label{min-width:0;overflow-wrap:anywhere}
.ap-shell .ap-language-picker__flag{display:grid;place-items:center;width:32px;height:24px;overflow:hidden;border-radius:3px;background:#e8eff4;box-shadow:0 1px 3px #132b4924,inset 0 0 0 1px #132b4918}
.ap-shell .ap-language-picker__flag img{display:block;width:100%;height:100%;object-fit:cover}
.ap-shell .ap-language-picker__check{justify-self:end;min-width:1.25em}
.ap-shell .ap-language-picker--flags :focus-visible{outline:3px solid #0068ee;outline-offset:2px}

.ap-shell .ap-language-picker__dialog>nav{display:block;position:static;inset:auto;width:auto;max-width:none;max-height:none;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:#fff;overflow:visible}
.ap-shell .ap-language-picker__dialog::backdrop{background:#132b4912}
.ap-shell details.ap-language-picker--flags[open]>summary .ap-language-picker__chevron{transform:rotate(180deg)}
@media(max-width:700px){.ap-shell .ap-language-picker__dialog::backdrop{background:#132b4966}}

/* Narrow layout space, including browser zoom: keep flags, labels and Close readable. */
@media(max-width:300px){
 .ap-shell details.ap-language-picker--flags>nav,.ap-shell details.ap-language-picker--flags>dialog.ap-language-picker__dialog{padding:6px;border-radius:16px;scroll-padding-top:64px}
 .ap-shell details.ap-language-picker--flags .ap-language-picker__heading{top:-6px;padding-left:4px;font-size:14px}
 .ap-shell details.ap-language-picker--flags .ap-language-picker__heading>span{min-width:0;overflow-wrap:anywhere}
 .ap-shell details.ap-language-picker--flags a.ap-language-picker__option{grid-template-columns:24px minmax(0,1fr) 1em;gap:6px;padding:8px 4px;font-size:16px;min-height:48px}
 .ap-shell details.ap-language-picker--flags .ap-language-picker__flag{width:24px;height:18px}
 .ap-shell details.ap-language-picker--flags .ap-language-picker__check{min-width:1em}
}
