/* Country Selector – Hero Optimized (scoped) */
.country-selector-section { margin-block: var(--wp--preset--spacing--50, 3rem); text-align: center; }
.country-selector-heading { margin: 0 0 var(--wp--preset--spacing--40, 2rem); text-align: center; }

.country-selector-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--wp--preset--spacing--30, 1.5rem) var(--wp--preset--spacing--50, 2.5rem);
  list-style: none; padding: 0; margin: 0 auto; max-width: 900px;
  justify-content: center; justify-items: center; align-items: center;
}
.country-item { display: flex; align-items: center; gap: var(--wp--preset--spacing--10, 6px); min-width: 140px; }
.country-link { display: inline-flex; align-items: center; gap: var(--wp--preset--spacing--10, 6px); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: from-font; color: inherit; }
.country-link:hover { opacity: .9; color: inherit; }
.country-flag { width: 36px; height: 24px; object-fit: cover; display: block; }
.country-name { line-height: 1; white-space: nowrap; font-weight: inherit; }

@media (max-width: 900px) { .country-selector-list { grid-template-columns: repeat(2, minmax(140px, 1fr)); max-width: 600px; } }
@media (max-width: 600px) { .country-selector-list { grid-template-columns: 1fr; max-width: 300px; } }

/* Styles toggle */
.is-style-left.country-selector-section { text-align: left; }
.is-style-left .country-selector-list { justify-content: start; justify-items: start; margin-left: 0; margin-right: auto; }
