/* JICOA_COUNTRY_HOVER_FLAG_SIGNIN_V3
   Small, scoped header-only refinement. Loaded after all previous country CSS.
   Keep Country exactly as wide as Returns & Orders (V2 measurement). */

/* Remove the green-tinted hover/expanded background and border from the
   Country trigger, including pressed state. Keep a dark keyboard focus ring. */
#jicoa-country-selector-v2 > .jicoa-country-trigger-v2,
#jicoa-country-selector-v2 > .jicoa-country-trigger-v2:hover,
#jicoa-country-selector-v2 > .jicoa-country-trigger-v2:active,
#jicoa-country-selector-v2 > .jicoa-country-trigger-v2:focus,
#jicoa-country-selector-v2 > .jicoa-country-trigger-v2[aria-expanded="true"] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #171717 !important;
}
#jicoa-country-selector-v2 > .jicoa-country-trigger-v2:focus-visible {
  outline: 2px solid #202020 !important;
  outline-offset: 1px !important;
}
#jicoa-country-selector-v2 > .jicoa-country-trigger-v2:not(:focus-visible) {
  outline: none !important;
}

/* Make the flag legible while preserving the exact-width Country box. */
#jicoa-country-selector-v2 .jicoa-country-flag-v2 {
  font-size: 20px !important;
  width: 22px !important;
  flex: 0 0 22px !important;
  height: 22px !important;
  line-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
#jicoa-country-selector-v2 .jicoa-country-trigger-words-v2 {
  min-width: 0 !important;
  flex: 1 1 0% !important;
}
/* Keep both Country labels identical to the black header text. */
#jicoa-country-selector-v2 .jicoa-country-kicker-v2,
#jicoa-country-selector-v2 .jicoa-country-current-v2,
#jicoa-country-selector-v2 .jicoa-country-chevron-v2 {
  color: #171717 !important;
}

/* The script applies this class ONLY to the sign-in action immediately
   alongside Country; no other navigation items are changed. */
.jicoa-header-signin-compact-v3 {
  box-sizing: border-box !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
@media (max-width: 760px) {
  #jicoa-country-selector-v2 .jicoa-country-flag-v2 {
    font-size: 18px !important;
    width: 19px !important;
    flex-basis: 19px !important;
    height: 19px !important;
    line-height: 19px !important;
  }
  .jicoa-header-signin-compact-v3 {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
}
