/* Scoped styles for Verifate Chinese gateway */
.vf-chinese-gateway {
  width: 100%;
  box-sizing: border-box;
  background-color: #faf6ef;
  color: #1a2a3a;
  border: 1px solid #d4c5a9;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.vf-chinese-gateway *,
.vf-chinese-gateway *::before,
.vf-chinese-gateway *::after {
  box-sizing: border-box;
}

.vf-chinese-gateway h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: #1a2a3a;
  line-height: 1.3;
}

.vf-chinese-gateway .vf-gateway-intro {
  margin: 0 0 1.25rem;
  color: #1a2a3a;
}

.vf-chinese-gateway .vf-gateway-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.vf-chinese-gateway .vf-gateway-card {
  flex: 1 1 240px;
  background-color: #ffffff;
  border: 1px solid #d4c5a9;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.vf-chinese-gateway .vf-gateway-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #1a2a3a;
  line-height: 1.3;
}

.vf-chinese-gateway .vf-gateway-card p {
  margin: 0 0 0.75rem;
  color: #1a2a3a;
}

.vf-chinese-gateway .vf-gateway-card .vf-gateway-input {
  font-size: 0.9rem;
  color: #4a5a6a;
  margin-bottom: 1rem;
}

.vf-chinese-gateway .vf-gateway-button {
  display: inline-block;
  margin-top: auto;
  padding: 0.75rem 1rem;
  min-height: 44px;
  background-color: #1a2a3a;
  color: #faf6ef;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  border: 2px solid #1a2a3a;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.vf-chinese-gateway .vf-gateway-button:hover,
.vf-chinese-gateway .vf-gateway-button:focus {
  background-color: #faf6ef;
  color: #1a2a3a;
  border-color: #1a2a3a;
  outline: none;
}

.vf-chinese-gateway .vf-gateway-button:focus-visible {
  outline: 2px solid #b8860b;
  outline-offset: 2px;
}

.vf-chinese-gateway .vf-gateway-footer {
  margin: 0;
  font-size: 0.9rem;
  color: #4a5a6a;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .vf-chinese-gateway {
    background-color: #1a2a3a;
    color: #faf6ef;
    border-color: #b8860b;
  }
  .vf-chinese-gateway h2,
  .vf-chinese-gateway .vf-gateway-intro,
  .vf-chinese-gateway .vf-gateway-card h3,
  .vf-chinese-gateway .vf-gateway-card p {
    color: #faf6ef;
  }
  .vf-chinese-gateway .vf-gateway-card {
    background-color: #243447;
    border-color: #b8860b;
  }
  .vf-chinese-gateway .vf-gateway-card .vf-gateway-input,
  .vf-chinese-gateway .vf-gateway-footer {
    color: #d4c5a9;
  }
  .vf-chinese-gateway .vf-gateway-button {
    background-color: #faf6ef;
    color: #1a2a3a;
    border-color: #faf6ef;
  }
  .vf-chinese-gateway .vf-gateway-button:hover,
  .vf-chinese-gateway .vf-gateway-button:focus {
    background-color: #1a2a3a;
    color: #faf6ef;
    border-color: #faf6ef;
  }
  .vf-chinese-gateway .vf-gateway-button:focus-visible {
    outline-color: #b8860b;
  }
}

/* Responsive: stack cards on narrow screens */
@media (max-width: 480px) {
  .vf-chinese-gateway .vf-gateway-cards {
    flex-direction: column;
  }
  .vf-chinese-gateway .vf-gateway-card {
    flex: 1 1 auto;
  }
}

/* Ensure no horizontal overflow at 320px */
@media (max-width: 320px) {
  .vf-chinese-gateway {
    padding: 0.75rem;
  }
  .vf-chinese-gateway .vf-gateway-button {
    padding: 0.75rem 0.5rem;
  }
}