/* Round r35 (5 Dec 2026): dark mode for third-party popups that stayed white.
   1. Phone number country list (intl-tel-input on checkout, register, profile, contacts):
      dark panel, light names, grey dial codes, dark hover row and divider.
   2. Popover title bar and arrow (Bootstrap popover): was light grey with white text.
   Dark mode only: every rule starts with html:not([data-lx-theme="light"]), so light mode is not touched.
   Loaded last in header.tpl. Undo: rollback_r35.sh */
html:not([data-lx-theme="light"]) .intl-tel-input .country-list{
  background-color:var(--lxb-card,#0B1024)!important;border:1px solid var(--lxb-border,#1E2338)!important;
  border-radius:8px;box-shadow:0 12px 32px rgba(0,0,0,.55)!important;color:var(--lxb-text,#DDE2F5)!important;
  scrollbar-color:#2C3250 transparent}
html:not([data-lx-theme="light"]) .intl-tel-input .country-list .country{color:var(--lxb-text,#DDE2F5)!important}
html:not([data-lx-theme="light"]) .intl-tel-input .country-list .country-name{color:var(--lxb-text,#DDE2F5)!important}
html:not([data-lx-theme="light"]) .intl-tel-input .country-list .country .dial-code{color:var(--lxb-muted,#9399B8)!important}
html:not([data-lx-theme="light"]) .intl-tel-input .country-list .country.highlight{background-color:var(--lxb-raised,#11172E)!important}
html:not([data-lx-theme="light"]) .intl-tel-input .country-list .country.highlight .country-name{color:#FFFFFF!important}
html:not([data-lx-theme="light"]) .intl-tel-input .country-list .divider{border-bottom-color:var(--lxb-border,#1E2338)!important}
html:not([data-lx-theme="light"]) .intl-tel-input .selected-flag .iti-arrow{border-top-color:var(--lxb-muted,#9399B8)}
html:not([data-lx-theme="light"]) .intl-tel-input .selected-flag .iti-arrow.up{border-bottom-color:var(--lxb-muted,#9399B8)}
html:not([data-lx-theme="light"]) .intl-tel-input.allow-dropdown .flag-container:hover .selected-flag{background-color:rgba(255,255,255,.05)}
/* phones: the list opens as a full-screen layer */
html:not([data-lx-theme="light"]) .intl-tel-input.iti-container{background:transparent}
/* popover title bar and arrow */
html:not([data-lx-theme="light"]) .popover{border:1px solid var(--lxb-border,#1E2338)!important}
html:not([data-lx-theme="light"]) .popover-header{background-color:var(--lxb-raised,#11172E)!important;color:var(--lxb-head,#FFFFFF)!important;border-bottom:1px solid var(--lxb-border,#1E2338)!important}
html:not([data-lx-theme="light"]) .bs-popover-bottom .arrow::after,html:not([data-lx-theme="light"]) .bs-popover-auto[x-placement^=bottom] .arrow::after{border-bottom-color:var(--lxb-card,#0B1024)!important}
html:not([data-lx-theme="light"]) .bs-popover-top .arrow::after,html:not([data-lx-theme="light"]) .bs-popover-auto[x-placement^=top] .arrow::after{border-top-color:var(--lxb-card,#0B1024)!important}
html:not([data-lx-theme="light"]) .bs-popover-right .arrow::after,html:not([data-lx-theme="light"]) .bs-popover-auto[x-placement^=right] .arrow::after{border-right-color:var(--lxb-card,#0B1024)!important}
html:not([data-lx-theme="light"]) .bs-popover-left .arrow::after,html:not([data-lx-theme="light"]) .bs-popover-auto[x-placement^=left] .arrow::after{border-left-color:var(--lxb-card,#0B1024)!important}
html:not([data-lx-theme="light"]) .bs-popover-bottom .arrow::before,html:not([data-lx-theme="light"]) .bs-popover-auto[x-placement^=bottom] .arrow::before{border-bottom-color:var(--lxb-border,#1E2338)!important}
html:not([data-lx-theme="light"]) .bs-popover-top .arrow::before,html:not([data-lx-theme="light"]) .bs-popover-auto[x-placement^=top] .arrow::before{border-top-color:var(--lxb-border,#1E2338)!important}
html:not([data-lx-theme="light"]) .bs-popover-right .arrow::before,html:not([data-lx-theme="light"]) .bs-popover-auto[x-placement^=right] .arrow::before{border-right-color:var(--lxb-border,#1E2338)!important}
html:not([data-lx-theme="light"]) .bs-popover-left .arrow::before,html:not([data-lx-theme="light"]) .bs-popover-auto[x-placement^=left] .arrow::before{border-left-color:var(--lxb-border,#1E2338)!important}
/* r35b (5 Dec 2026): phones. The full-screen country list ran 30px off the right edge, because the general
   ".intl-tel-input{width:100%}" also hit the list layer. Now it sits inside the screen with even margins,
   rounded corners and a dimmed page behind it. Both modes (layout only; light colours unchanged). */
.iti-mobile .intl-tel-input.iti-container{width:auto!important;left:16px!important;right:16px!important;top:64px!important;bottom:24px!important;padding:0!important;z-index:2147483000!important;border-radius:12px;box-shadow:0 0 0 100vmax rgba(0,0,0,.45)}
.iti-mobile .intl-tel-input.iti-container .country-list{margin:0!important;width:100%!important;max-height:100%!important;border-radius:12px;overflow-y:auto}
html:not([data-lx-theme="light"]) .iti-mobile .intl-tel-input.iti-container{box-shadow:0 0 0 100vmax rgba(0,0,0,.65)}
