.country-wrap.country-combo-ready::after {
  display: none;
}

.country-wrap.country-combo-ready #country {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
}

.country-combo {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.country-combo-trigger {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 32px 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
  user-select: none;
}

.country-combo-trigger:hover {
  border-color: #cbd5e1;
}

.country-combo.open .country-combo-trigger {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.country-combo-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-combo-label.is-placeholder {
  color: #9ca3af;
}

.country-combo-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
}

.country-combo-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1200;
  width: min(340px, calc(100vw - 48px));
  max-width: 92vw;
  padding: 10px;
  display: none;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.country-combo.open .country-combo-panel {
  display: block;
}

.country-combo-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-combo-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  background: #f9fafb;
}

.country-combo-search:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
}

.country-combo-az {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.country-combo-az:hover,
.country-combo-az.active {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.country-combo-hint {
  padding: 8px 2px 6px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.2;
}

.country-combo-list {
  max-height: 310px;
  overflow: auto;
  padding-right: 2px;
}

.country-combo-option {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.country-combo-option:hover,
.country-combo-option.is-keyboard-target {
  background: #f1f5f9;
}

.country-combo-option.selected {
  background: #eff6ff;
  color: #2563eb;
}

.country-combo-option-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.country-combo-option-label {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.country-combo-option-code {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
}

.country-combo-option.selected .country-combo-option-code {
  color: #60a5fa;
}

.country-combo-option-count {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.country-combo-empty {
  padding: 18px 8px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .country-combo-trigger {
    padding-left: 10px;
    padding-right: 34px;
    font-size: 11px;
  }

  .country-combo-panel {
    width: min(340px, calc(100vw - 24px));
  }
}
