#rb-country-gate {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
}
#rb-country-gate.rb-open {
  display: flex;
}
#rb-country-gate .rb-cg-card {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 18px;
  box-sizing: border-box;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: #0b1c17;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
#rb-country-gate h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}
#rb-country-gate p {
  margin: 0 0 16px;
  color: #c9d7d1;
  line-height: 1.45;
}
#rb-country-gate .rb-cg-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
#rb-country-gate button {
  padding: 11px 16px;
  border-radius: 11px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
#rb-country-gate [hidden] {
  display: none !important;
}
#rb-country-gate .rb-cg-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #102820;
  color: #fff;
  text-align: start;
}
#rb-country-gate .rb-cg-value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#rb-country-gate .rb-cg-flag {
  width: 28px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}
#rb-country-gate .rb-cg-options {
  margin-top: 8px;
  max-height: min(280px, 40dvh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  background: #102820;
}
#rb-country-gate .rb-cg-options button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  text-align: start;
  background: transparent;
  color: #fff;
  font-weight: 600;
}
#rb-country-gate .rb-cg-options button:hover,
#rb-country-gate .rb-cg-options button:focus,
#rb-country-gate .rb-cg-options button[aria-selected='true'] {
  background: #23563f;
}
#rb-country-gate button:focus-visible {
  outline: 2px solid #86efb7;
  outline-offset: -2px;
}
#rb-country-gate .rb-cg-go {
  border: 0;
  background: #37cf91;
  color: #062116;
}
#rb-country-gate .rb-cg-cancel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
}
#rb-country-gate .rb-cg-error {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #3a1717;
  color: #ffd9d9;
}
#rb-country-gate .rb-cg-error.rb-show {
  display: block;
}
