.country-gateway {
  max-width: 1180px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid #278fcd;
  border-radius: 16px;
  background: #101d30;
  color: #fff;
}
.country-gateway h2 { margin-top: 0; }
.country-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.country-controls label { display: grid; gap: 6px; flex: 1 1 160px; min-width: 0; }
.country-controls input, .country-controls select, .country-controls button {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #53799d;
  border-radius: 8px;
  background: #101d30;
  color: #fff;
  font: inherit;
}
.country-controls button { width: auto; cursor: pointer; }
.country-controls :focus-visible, .country-header summary:focus-visible {
  outline: 3px solid #40e0d0;
  outline-offset: 3px;
}
.country-controls-status { flex-basis: 100%; margin: 0; font-size: .9rem; }
.country-header { position: relative; margin-left: auto; color: #fff; }
.country-header summary { cursor: pointer; padding: 10px; min-height: 44px; box-sizing: border-box; }
.cmc-header.country-preferences-open { flex-wrap: wrap; }
.country-header[open] { flex: 0 0 100%; width: 100%; margin-left: 0; }
.country-header .country-controls { padding: 16px; background: #101d30; border: 1px solid #278fcd; border-radius: 12px; }
@media (max-width: 820px) {
  .country-header { flex-basis: 100%; margin-left: 0; }
  .country-gateway { margin: 16px 12px; padding: 18px; }
  .country-controls label, .country-controls button { flex-basis: 100%; width: 100%; }
}

/* Longer Polish link labels need room at narrow viewport widths. */
.site-footer:lang(pl) .footer-cols { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; gap: 24px !important; }
.site-footer:lang(pl) .footer-col { min-width: 0; }
