/* Scoped shared country picker; header and other Bootstrap dialogs are unchanged. */
.site-country-dialog { --country-accent: #b7232b; --country-tint: #fff4f4; color: #202735; }
.site-country-nojs { margin: 16px auto; padding: 16px; max-width: 520px; border: 1px solid #c8d0da; border-radius: 12px; background: white; color: #202735; }
.site-country-nojs select { width: 100% !important; min-height: 44px; display: block; }
.site-country-nojs button { min-height: 44px; margin-top: 12px; }
.site-country-dialog--carbon { --country-accent: #222b37; --country-tint: #f1f4f7; }
.site-country-dialog [hidden] { display: none !important; }
.site-country-dialog .modal-dialog { width: calc(100% - 32px); max-width: 520px; margin: 24px auto; }
.site-country-dialog .modal-content { border: 0; border-radius: 18px; box-shadow: 0 18px 64px #0004; overflow: hidden; }
.site-country-dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); font: 14px/1.5 Arial, sans-serif; }
.site-country-dialog-head { position: relative; padding: 26px 28px 18px; border-bottom: 1px solid #e8ebef; flex: 0 0 auto; }
.site-country-dialog-head h2 { margin: 0 38px 8px 0; font: bold 22px/1.25 Arial, sans-serif; color: #202735; text-transform: none; }
.site-country-dialog-head p { margin: 0; color: #596474; max-width: 410px; }
.site-country-dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #596474; font: 28px Arial, sans-serif; cursor: pointer; }
.site-country-dialog-body { padding: 18px 28px 10px; overflow-y: auto; min-height: 0; }
.site-country-current { display: flex; align-items: center; gap: 14px; border: 1px solid #e3e7ed; background: #f7f9fb; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.site-country-current-icon { display: inline-flex; flex: 0 0 24px; }
.site-country-current strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.site-country-current-label { display: block; color: #657184; font-size: 12px; }
.site-country-search-label, .site-country-native label { display: block; font-weight: bold; margin-bottom: 8px; }
.site-country-search-wrap { position: relative; }
.site-country-search-wrap > i { position: absolute; top: 16px; left: 15px; color: #657184; }
.site-country-dialog input.site-country-search { width: 100%; height: 48px; border: 1px solid #c8d0da; border-radius: 10px; padding: 10px 34px 10px 40px; font: 16px Arial, sans-serif; color: #202735; background: white; box-sizing: border-box; }
.site-country-native select { display: block; width: 100% !important; min-height: 48px; margin-top: 8px; font-size: 16px; }
.site-country-results { border: 0; padding: 0 4px; margin: 12px -4px 0; min-width: 0; max-height: 300px; max-height: min(300px, 35vh); overflow-y: auto; overscroll-behavior: contain; }
.site-country-group { font: bold 11px Arial, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #657184; padding: 12px 12px 8px; }
.site-country-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 12px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: normal; box-sizing: border-box; }
.site-country-row:hover, .site-country-row:focus-within { background: #f3f5f8; }
.site-country-row.is-selected { border-color: var(--country-accent); background: var(--country-tint); }
.site-country-row-name { flex: 1; overflow-wrap: anywhere; min-width: 0; }
.site-country-row-icon { display: inline-flex; flex: 0 0 24px; }
.site-country-check { color: var(--country-accent); visibility: hidden; font-size: 18px; font-weight: bold; }
.site-country-row.is-selected .site-country-check { visibility: visible; }
.site-country-empty { padding: 24px 12px; color: #657184; text-align: center; }
.site-country-login { margin: 16px 0 8px; color: #657184; font-size: 12px; }
.site-country-dialog .site-country-login a { color: var(--country-accent); font-weight: bold; text-decoration: underline; display: inline-block; padding: 12px 2px; }
.site-country-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; background: white; border-top: 1px solid #e8ebef; flex: 0 0 auto; }
.site-country-dialog-footer button { min-height: 44px; border-radius: 10px; padding: 10px 20px; font: bold 14px Arial, sans-serif; cursor: pointer; }
.site-country-cancel { border: 1px solid #c8d0da; color: #344051; background: white; }
.site-country-apply { border: 1px solid var(--country-accent); color: white; background: var(--country-accent); }
.site-country-apply:disabled { opacity: .5; cursor: default; }
.site-country-dialog :focus-visible, .site-country-row:focus-within { outline: 2px solid var(--country-accent); outline-offset: 2px; }
.site-country-sr-only, .site-country-row input[type=radio] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 540px) {
  .site-country-dialog .modal-dialog { margin: 12px auto; width: calc(100% - 24px); }
  .site-country-dialog form { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .site-country-dialog-head { padding: 22px 18px 16px; }
  .site-country-dialog-head h2 { font-size: 20px; }
  .site-country-dialog-body { padding: 16px 18px 8px; }
  .site-country-dialog-footer { padding: 14px 18px; }
  .site-country-dialog-footer button { flex: 1; padding: 10px 12px; }
}
