.india-state-picker,
.india-state-popover {
  --state-bg: #fff;
  --state-text: #29243e;
  --state-muted: #7a758e;
  --state-border: #e4dfed;
  --state-soft: #f5f2fd;
  --state-accent: #7046d2;
}
body.dark .india-state-picker,
body.dark .india-state-popover,
html[data-theme="dark"] .india-state-picker,
html[data-theme="dark"] .india-state-popover {
  --state-bg: #151b2b;
  --state-text: #eeebf7;
  --state-muted: #aaa4bc;
  --state-border: #32334c;
  --state-soft: #24233e;
  --state-accent: #b79af4;
}
.india-state-picker { min-width: 0; }
.india-state-picker [data-state-select][hidden],
.india-state-error[hidden],
.india-state-popover[hidden],
.india-state-empty[hidden] { display: none !important; }
.india-state-control { position: relative; }
.india-state-control .india-state-input {
  width: 100%;
  margin: 0;
  padding-right: 45px;
  background-image: none;
  text-overflow: ellipsis;
}
.india-state-control .india-state-input[aria-invalid="true"] { border-color: #d65b76; }
.india-state-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--state-muted);
  cursor: pointer;
}
.india-state-toggle:hover { color: var(--state-accent); background: var(--state-soft); }
.india-state-toggle svg { transition: transform .15s; }
.india-state-picker.is-open .india-state-toggle svg { transform: rotate(180deg); }
.india-state-popover {
  position: fixed;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--state-border);
  border-radius: 13px;
  background: var(--state-bg);
  color: var(--state-text);
  box-shadow: 0 14px 40px #140b3526, 0 3px 9px #140b3510;
  font-family: inherit;
  text-align: left;
}
.india-state-heading {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px 11px;
  border-bottom: 1px solid var(--state-border);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 1.2px;
  color: var(--state-muted);
}
.india-state-heading > span:last-child { font-size: 10px; letter-spacing: 0; font-weight: 600; }
.india-state-list {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 5px;
  touch-action: pan-y;
}
.india-state-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 8px;
  color: var(--state-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  user-select: none;
}
.india-state-option.is-active { background: var(--state-soft); color: var(--state-accent); }
.india-state-check { visibility: hidden; color: var(--state-accent); font-size: 16px; font-weight: 800; }
.india-state-option[aria-selected="true"] .india-state-check { visibility: visible; }
.india-state-empty { padding: 23px 17px; font-size: 12px; line-height: 1.8; color: var(--state-muted); }
.india-state-error { display: block; margin-top: 7px; color: #d65b76; font-size: 11px; line-height: 1.6; }
.india-state-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (pointer: coarse) {
  .india-state-control .india-state-input { font-size: 16px; }
  .india-state-option { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .india-state-toggle svg { transition: none; }
}
