/* Custom searchable country-code picker (no Select2) */
.mobile-cc-group {
  position: relative;
}

.mobile-cc-group .mobile-cc-addon {
  position: relative;
  padding: 0 !important;
  background: #fff !important;
  overflow: visible !important;
  min-width: 5.75rem;
  width: 5.75rem;
  vertical-align: middle;
}

.mobile-cc-group .mobile-cc-select {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mobile-cc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  height: 34px;
  padding: 0 6px 0 8px;
  border: 0;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  line-height: 1;
}

.mobile-cc-toggle:hover,
.mobile-cc-toggle:focus {
  background: #f3f4f6;
  outline: none;
}

.mobile-cc-caret {
  font-size: 10px;
  color: #666;
}

.mobile-cc-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 10060;
  width: 18rem;
  max-width: min(18rem, 80vw);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  padding: 8px;
}

.mobile-cc-search {
  width: 100%;
  height: 34px;
  margin-bottom: 6px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}

.mobile-cc-search:focus {
  border-color: #f97316;
  outline: none;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.mobile-cc-list {
  max-height: 220px;
  overflow-y: auto;
}

.mobile-cc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
}

.mobile-cc-item:hover,
.mobile-cc-item:focus {
  background: #fff7ed;
  outline: none;
}

.mobile-cc-item-code {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.mobile-cc-item-name {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
}

.mobile-cc-empty {
  padding: 12px 10px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

.mobile-cc-group .mobile-cc-national {
  border-left: 0;
}

.mobile-cc-group .mobile-cc-full {
  display: none !important;
}

/* Hide leftover Select2 UI if an older page still has it */
.mobile-cc-group .select2-container {
  display: none !important;
}
