/* Country + applicable regulation selector */
.country-reg {
  position: relative;
  font-family: Inter, system-ui, sans-serif;
  z-index: 90;
}

.country-reg__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(42vw, 280px);
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem 0.35rem 0.45rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
}

.country-reg__trigger:hover,
.country-reg.is-open .country-reg__trigger {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.country-reg__ico {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #0f172a;
  color: #93c5fd;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.country-reg__label {
  color: #64748b;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.country-reg__current {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-reg__chev {
  color: #64748b;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.country-reg__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(720px, calc(100vw - 1.25rem));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.country-reg.is-open .country-reg__panel {
  display: block;
}

.country-reg__panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.country-reg__panel-head strong {
  font-size: 0.82rem;
  color: #0f172a;
}

.country-reg__panel-head span {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.country-reg__layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  min-height: 280px;
}

.country-reg__list {
  border-right: 1px solid #e2e8f0;
  max-height: min(52vh, 360px);
  overflow: auto;
  background: #fafafa;
  padding: 0.4rem;
}

.country-reg__opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
}

.country-reg__opt:hover {
  background: #fff;
  border-color: #e2e8f0;
}

.country-reg__opt.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.country-reg__opt.is-featured {
  box-shadow: inset 3px 0 0 #dc2626;
}

.country-reg__opt-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.country-reg__opt-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.country-reg__opt-text b {
  font-size: 0.78rem;
  font-weight: 700;
}

.country-reg__opt-text small {
  font-size: 0.64rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-reg__detail {
  padding: 0.85rem 1rem 1rem;
}

.country-reg__card h4 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.country-reg__badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.country-reg__card.is-featured {
  border-left: 3px solid #dc2626;
  padding-left: 0.75rem;
}

.country-reg__law,
.country-reg__applies {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.45;
}

.country-reg__law strong,
.country-reg__applies strong {
  color: #0f172a;
}

.country-reg__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.country-reg__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.country-reg__link:hover {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: #93c5fd;
}

@media (max-width: 720px) {
  .country-reg__label {
    display: none;
  }
  .country-reg__layout {
    grid-template-columns: 1fr;
  }
  .country-reg__list {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    max-height: 160px;
  }
  .country-reg__panel {
    left: auto;
    right: 0;
    width: min(96vw, 420px);
  }
}
