* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#__next {
  width: 500px;
  padding-left: auto;
  padding-right: auto;
  background: linear-gradient(to bottom right, #fff, #fff) !important;
}

body {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #fff, #fff) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 500px;
  padding-top: 300px;
}

h1 {
  font-size: 24px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 24px;
  text-align: center;
}

.dropdown-wrapper {
  position: relative;
}

.dropdown-button {
  width: 100%;
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dropdown-button:hover {
  border-color: #94a3b8;
}

.dropdown-button span {
  color: #334155;
}

.dropdown-button svg {
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: transform 0.2s;
}

.dropdown-button.open svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 10;
  display: none;
}

.dropdown-menu.open {
  display: block;
}

.search-wrapper {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.search-input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
}

.search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.items-list {
  max-height: 256px;
  overflow-y: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #eff6ff;
}

.item-name {
  flex: 1;
  text-align: left;
  color: #334155;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 14px;
}

.authorize-link {
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 12px;
}

.dropdown-item:hover .authorize-link {
  opacity: 1;
}

.authorize-link:hover {
  color: #1d4ed8;
}

.no-results {
  padding: 32px 16px;
  text-align: center;
  color: #94a3b8;
}

.hint {
  font-size: 14px;
  color: #64748b;
  margin-top: 16px;
  text-align: center;
}
