/* Regional preferences share the site's typography, surfaces and accent. */
#tc-locale-overlay[hidden],
#tc-locale-overlay [hidden]{display:none !important;}
#tc-locale-overlay{
  position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;
  padding:16px;background:rgba(6,7,12,.66);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  overscroll-behavior:contain;
}
#tc-locale-overlay .tc-locale-modal{
  position:relative;box-sizing:border-box;width:100%;max-width:460px;max-height:calc(var(--tc-dynamic-viewport-height, 100dvh) - 32px);
  overflow-y:auto;overscroll-behavior:contain;padding:30px 32px 28px;
  background:var(--bg2,#1b1c20);color:var(--text,#f5f5f7);border:1px solid var(--border2,rgba(255,255,255,.14));
  border-radius:24px;box-shadow:0 24px 80px rgba(0,0,0,.28);outline:none;
  font-family:var(--font-body,'Manrope',sans-serif);font-size:14px;line-height:1.5;
}
#tc-locale-overlay .tc-locale-head{padding:12px 8px 0;margin:0 0 28px;text-align:center;}
#tc-locale-overlay .tc-locale-title{
  margin:0;color:var(--text);font-family:var(--font-title,'Syne',sans-serif) !important;
  font-size:20px;font-weight:800 !important;line-height:1.35;letter-spacing:-.025em !important;text-wrap:balance;
}
#tc-locale-overlay .tc-locale-description{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.6;}
#tc-locale-overlay .tc-locale-x{
  position:absolute;top:7px;right:7px;display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;min-height:36px;padding:0 !important;border:0 !important;border-radius:4px !important;
  background:transparent !important;color:var(--text) !important;box-shadow:none !important;cursor:pointer;
}
#tc-locale-overlay .tc-locale-x:hover{background:var(--bg3) !important;}
#tc-locale-overlay .tc-locale-x svg{display:block;width:20px;height:20px;flex:none;}
#tc-locale-overlay .tc-locale-fields{display:grid;gap:20px;}
#tc-locale-overlay .tc-locale-field{min-width:0;margin:0;padding:0;border:0;background:transparent;}
#tc-locale-overlay .tc-locale-label{
  display:block;margin:0 0 7px;color:var(--text);font-family:var(--font-body,'Manrope',sans-serif);
  font-size:14px;font-weight:700;line-height:1.5;letter-spacing:0;text-transform:none;
}
#tc-locale-overlay .tc-locale-picker{position:relative;min-width:0;}
#tc-locale-overlay .tc-locale-picker.is-open{z-index:2;}
#tc-locale-overlay .tc-locale-control{
  position:relative;display:flex;align-items:center;min-width:0;height:50px;
  border:1px solid var(--border2);border-radius:6px;background:var(--bg2);transition:border-color .15s,box-shadow .15s;
}
#tc-locale-overlay .tc-locale-control:focus-within{
  border-color:var(--accent2);box-shadow:0 0 0 3px var(--tc-focus-ring,rgba(199,125,255,.18));
}
#tc-locale-overlay input.tc-locale-search{
  display:block;box-sizing:border-box;width:100%;min-width:0;height:100%;min-height:0;
  margin:0 !important;padding:12px 44px 12px 14px !important;
  border:0 !important;border-radius:6px !important;background:transparent !important;box-shadow:none !important;
  color:var(--text) !important;outline:none !important;
  font-family:var(--font-body,'Manrope',sans-serif) !important;font-size:16px !important;font-weight:500;line-height:1.5;letter-spacing:0;
}
#tc-locale-overlay input.tc-locale-search::placeholder{color:var(--muted) !important;opacity:1;}
#tc-locale-overlay [data-tc-locale-picker="region"]:not(.is-open) input.tc-locale-search{padding-left:48px !important;}
#tc-locale-overlay .tc-locale-control-flag{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);width:24px;height:24px;
  border-radius:50%;object-fit:cover;pointer-events:none;
}
#tc-locale-overlay .is-open .tc-locale-control-flag{display:none;}
#tc-locale-overlay .tc-locale-search-icon{
  position:absolute;right:14px;top:50%;display:flex;transform:translateY(-50%);color:var(--muted);pointer-events:none;
}
#tc-locale-overlay .tc-locale-search-icon svg{display:block;width:20px;height:20px;}
#tc-locale-overlay .tc-locale-dropdown{
  position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:3;box-sizing:border-box;max-height:220px;
  overflow:auto;overscroll-behavior:contain;background:var(--bg2);color:var(--text);
  border:1px solid var(--border2);border-radius:6px;box-shadow:0 10px 24px rgba(0,0,0,.2);
}
#tc-locale-overlay .opens-above .tc-locale-dropdown{top:auto;bottom:calc(100% + 6px);}
#tc-locale-overlay .tc-locale-options{margin:0;padding:5px;list-style:none;}
#tc-locale-overlay .tc-locale-option{
  display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:44px;padding:10px;
  border-radius:4px;color:var(--text);font-size:14px;font-weight:500;line-height:1.5;cursor:pointer;
}
#tc-locale-overlay .tc-locale-option.is-selected{font-weight:700;}
#tc-locale-overlay .tc-locale-option.is-active,
#tc-locale-overlay .tc-locale-option:hover{background:var(--tc-accent-soft,rgba(199,125,255,.1));}
#tc-locale-overlay .tc-locale-option-flag{display:block;flex:none;width:24px;height:24px;border-radius:50%;object-fit:cover;}
#tc-locale-overlay .tc-locale-option-label{flex:1;min-width:0;overflow-wrap:anywhere;}
#tc-locale-overlay .tc-locale-empty{margin:0;padding:18px 15px;color:var(--muted);font-size:13px;line-height:1.5;}
#tc-locale-overlay .tc-locale-note{margin:18px 0 20px;color:var(--muted);font-size:12px;line-height:1.6;}
#tc-locale-overlay .tc-locale-btns{display:grid;grid-template-columns:1fr;gap:10px;}
#tc-locale-overlay :is(.tc-locale-save,.tc-locale-cancel){
  display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:0;padding:12px 18px;
  border:1px solid var(--accent-solid) !important;border-radius:6px !important;box-shadow:none !important;
  font-family:var(--font-body,'Manrope',sans-serif) !important;font-size:14px;font-weight:700;
  line-height:1.5;letter-spacing:0;text-transform:none;cursor:pointer;
}
#tc-locale-overlay .tc-locale-save{background:var(--accent-solid) !important;color:#fff !important;}
#tc-locale-overlay .tc-locale-save:hover{background:var(--accent-hover) !important;}
#tc-locale-overlay .tc-locale-cancel{background:transparent !important;color:var(--accent2) !important;}
#tc-locale-overlay .tc-locale-cancel:hover{background:var(--tc-accent-soft) !important;}
#tc-locale-overlay button:focus-visible{outline:2px solid var(--accent2) !important;outline-offset:3px;}
@media(max-width:520px){
  #tc-locale-overlay{padding:12px;}
  #tc-locale-overlay .tc-locale-modal{max-height:calc(var(--tc-dynamic-viewport-height, 100dvh) - 24px);padding:24px 20px 20px;}
  #tc-locale-overlay .tc-locale-head{padding:14px 4px 0;margin-bottom:24px;}
  #tc-locale-overlay .tc-locale-title{font-size:18px;}
  #tc-locale-overlay .tc-locale-fields{gap:18px;}
}
@media(prefers-reduced-motion:reduce){#tc-locale-overlay .tc-locale-control{transition:none;}}
