/* All Requirements instances, never Fee Checker. Named layer bridges the
   inherited important legacy rules; role values remain ordinary local tokens. */
@layer visa-requirements-ui {
  :is([data-visa-requirement-checker],[data-visa-country-popup],#homeVisaCountryMenu[data-country-popup]) {
    --requirements-face:Inter,Arial,sans-serif;
    --requirements-type:400 16px/1.5 var(--requirements-face);
    min-width:0;
    :where(*) { font:var(--requirements-type) !important; letter-spacing:normal !important; }
    :is(strong,b) { font-weight:600 !important; }
    .country-flag { width:24px !important; height:16px !important; min-width:24px !important; flex:0 0 24px !important; object-fit:cover !important; border-radius:2px !important; }
    :is(input,.search-select-trigger,.country-name) { --requirements-type:400 16px/1.5 var(--requirements-face); }
    :is(input,.search-select-trigger)::placeholder { font:400 16px/1.5 var(--requirements-face) !important; color:#53657b !important; opacity:1; }
    :is(.search-select-value,.country-name) { min-width:0 !important; white-space:normal !important; overflow-wrap:anywhere !important; }
    :is(.search-select-value,.search-select-option,.country-option) { display:flex !important; align-items:center !important; gap:8px !important; }
    :is(.search-select-option,.country-option) { --requirements-type:400 16px/1.5 var(--requirements-face); width:100% !important; padding:12px !important; min-height:48px !important; text-align:left !important; border:0 !important; }
    :is(.search-select-option,.country-option).is-active { background:#dceaff !important; color:#071d52 !important; }
    :is(.search-select-option,.country-option).is-selected { background:#edf4ff !important; color:#071d52 !important; }
    :is(.country-subname,.search-select-section-title,.country-list-heading,.search-select-empty,.country-list-empty) { --requirements-type:400 14px/1.5 var(--requirements-face); color:#344963 !important; }
    :is(.search-select-section-title,.country-list-heading,.search-select-empty,.country-list-empty) { padding:8px 12px !important; }
    :is(input,button,a):focus-visible { outline:3px solid #0b63d8 !important; outline-offset:3px !important; }
    ::selection { background:#dceaff; color:#071d52; }
  }
  [data-visa-requirement-checker] {
    padding:20px !important;
    :is(h2,h3) { --requirements-type:700 24px/1.3 var(--requirements-face); margin:0 0 12px !important; }
    > p { --requirements-type:400 14px/1.5 var(--requirements-face); margin:0 0 16px !important; color:#344963 !important; }
    :is(label,.visa-country-field-label) { --requirements-type:600 16px/1.5 var(--requirements-face); margin:0 0 8px !important; }
    [data-visa-legacy-label],[data-visa-country-select],[data-visa-country-input][hidden] { display:none !important; }
    .visa-country-field-label { display:block !important; }
    :is(.emergency-side-checker-form-v787GR,.vrx-checker-form-v1003) { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:0 !important; }
    .vrx-checker-card-v1003 { padding:0 !important; margin:0 !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
    .visa-country-search-select { margin:0 0 12px !important; min-width:0 !important; }
    :is(.search-select-trigger,#homeVisaCountrySearch) { box-sizing:border-box !important; min-height:52px !important; height:auto !important; margin:0 !important; padding:12px 16px !important; width:100% !important; }
    .search-select-trigger { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:8px !important; background:#fff !important; color:#142844 !important; border:1px solid #94a3b8 !important; }
    [data-visa-check-button] { --requirements-type:600 16px/1.5 var(--requirements-face); box-sizing:border-box !important; min-height:52px !important; height:auto !important; margin:0 !important; padding:12px 16px !important; max-width:100% !important; min-width:0 !important; white-space:normal !important; background:#d71920 !important; color:#fff !important; }
    [data-visa-check-button]:disabled { opacity:.65; cursor:wait; }
    [data-visa-result] { margin-top:16px !important; min-width:0; }
    [data-visa-result]:empty { margin:0 !important; }
    .visa-result-card { padding:16px !important; min-height:0 !important; height:auto !important; max-height:none !important; overflow:visible !important; overflow-wrap:anywhere; border-radius:12px !important; }
    .visa-result-card h3 { --requirements-type:700 20px/1.3 var(--requirements-face); margin:0 0 12px !important; }
    .visa-result-card p { --requirements-type:400 16px/1.5 var(--requirements-face); margin:0 0 12px !important; color:#344963 !important; }
    .visa-result-card .small { --requirements-type:400 14px/1.5 var(--requirements-face); }
    .result-kicker { --requirements-type:600 14px/1.5 var(--requirements-face); margin:0 0 8px !important; padding:0 !important; background:transparent !important; border:0 !important; border-radius:0 !important; color:#344963 !important; text-transform:none !important; }
    .result-grid { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:12px !important; margin:12px 0 !important; }
    .result-grid > div { padding:0 !important; min-width:0; background:transparent !important; border:0 !important; border-radius:0 !important; }
    .result-grid :is(span,strong) { display:block; --requirements-type:400 16px/1.5 var(--requirements-face); overflow-wrap:anywhere; }
    .result-grid strong { margin-top:4px; }
    .result-grid span { color:#344963 !important; }
    .hero-actions { display:flex !important; flex-wrap:wrap !important; gap:12px !important; margin:16px 0 0 !important; }
    .hero-actions .btn { --requirements-type:600 16px/1.5 var(--requirements-face); min-height:48px !important; height:auto !important; padding:12px 16px !important; max-width:100%; white-space:normal !important; overflow-wrap:anywhere; border-radius:12px !important; }
    .hero-actions .btn.red { background:#d71920 !important; color:#fff !important; }
    [data-visa-error] { --requirements-type:400 14px/1.5 var(--requirements-face); padding:12px !important; margin-top:12px !important; color:#9b1c26 !important; }
    [hidden] { display:none !important; }
  }
  [data-visa-country-popup] {
    position:fixed !important; inset:auto !important; margin:0 !important;
    left:var(--requirements-popup-left,8px) !important; top:var(--requirements-popup-top,8px) !important;
    width:var(--requirements-popup-width,280px) !important; max-height:var(--requirements-popup-height,320px) !important;
    display:flex !important; flex-direction:column !important; box-sizing:border-box !important;
    background:#fff !important; border:1px solid #94a3b8 !important; border-radius:12px !important;
    padding:8px !important; box-shadow:0 12px 28px rgba(15,35,70,.16) !important; z-index:2147483000 !important;
    .search-select-search-wrap { flex:0 0 auto; padding:0 0 8px !important; }
    .search-select-search { width:100% !important; box-sizing:border-box !important; min-height:48px !important; height:48px !important; margin:0 !important; padding:12px !important; }
    .search-select-options { position:relative !important; min-height:0 !important; max-height:none !important; overflow:auto !important; overscroll-behavior:contain; scrollbar-color:#8ba6cc #f1f6ff; }
  }
  [data-visa-country-popup][hidden] { display:none !important; }
  [data-visa-single-combobox] {
    gap:24px !important; align-items:center !important;
    .home-visa-checker-copy-v296G h2 { --requirements-type:700 24px/1.3 var(--requirements-face); }
    .visa-checker-form { gap:12px !important; }
    .visa-country-search-select { margin:0 !important; }
    .visa-checker-box { padding:0 !important; }
  }
  @media(max-width:640px) {
    [data-visa-requirement-checker] { padding:16px !important; }
    [data-visa-requirement-checker] .hero-actions .btn { width:100% !important; }
    [data-visa-requirement-checker] .visa-result-card { padding:12px !important; }
  }
}
