.ac-dev-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ac-dev-page--market-selector {
  max-width: 720px;
}

.ac-dev-header {
  margin-bottom: 1.5rem;
}

.ac-dev-header--center {
  text-align: center;
}

.ac-dev-logo {
  height: 56px;
  margin-bottom: 0.75rem;
}

.ac-dev-subtitle {
  color: #555;
  max-width: 40rem;
  margin: 0.25rem auto 0;
}

.ac-dev-header h1 {
  font-size: 1.8rem;
  margin: 0.5rem 0 0.25rem;
}

.ac-dev-section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e5e5;
}

.ac-dev-section--compact {
  border-top: none;
  padding-top: 0;
}

.ac-dev-controls--market-search {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: flex-end;
}

.ac-dev-search-box label,
.ac-dev-language-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ac-dev-search-box input,
.ac-dev-language-box select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.ac-dev-market-list {
  margin-top: 0.5rem;
}

.ac-dev-market-group {
  margin-bottom: 1.25rem;
}

.ac-dev-market-group__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ac-dev-market-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}

.ac-dev-market-button {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ac-dev-market-button:hover {
  border-color: #111;
  box-shadow: 0 0 0 1px #1110;
}

.ac-dev-market-button.is-default {
  border-color: #111;
  background: #fafafa;
}

.ac-dev-market-button__label {
  display: block;
  font-weight: 600;
}

.ac-dev-market-button__meta {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

.ac-dev-section--confirm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ac-dev-summary p {
  margin: 0.25rem 0;
}

.ac-dev-cookie-text {
  font-size: 0.9rem;
  color: #555;
}

.ac-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ac-dev-button {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #111;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.ac-dev-button--primary {
  background: #111;
  color: #fff;
}

.ac-dev-button--primary:hover {
  background: #000;
}

.ac-dev-button--secondary {
  background: #fff;
  color: #111;
}

.ac-dev-button--secondary:hover {
  background: #f5f5f5;
}

@media (max-width: 640px) {
  .ac-dev-controls--market-search {
    grid-template-columns: 1fr;
  }
}
