/**
 * Shared country-code phone field baseline.
 * Page skins may override colors; these rules keep the dropdown from
 * collapsing into the input row when page CSS is missing.
 */
.cu-phone-cc-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  overflow: visible;
  background: #fff;
}

.cu-phone-cc-group .fz-cc-wrap {
  position: relative;
  flex: 0 0 auto;
}

.cu-phone-cc-group .fz-cc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 88px;
  min-height: 46px;
  height: 100%;
  padding: 0 0.75rem;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #f5f7fa;
  border: 0;
  border-right: 1px solid #e8ecf0;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.cu-phone-cc-group .fz-cc-arrow {
  font-size: 0.65rem;
  color: #666;
  transition: transform 0.2s ease;
}

.cu-phone-cc-group .fz-cc-wrap.open .fz-cc-arrow {
  transform: rotate(180deg);
}

.cu-phone-cc-group .fz-cc-wrap.open {
  z-index: 1065;
}

.cu-phone-cc-group .fz-cc-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1066;
  width: min(280px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 33, 71, 0.14);
  overflow: hidden;
}

.cu-phone-cc-group .fz-cc-wrap.open .fz-cc-dropdown {
  display: block;
}

.cu-phone-cc-group .fz-cc-drop-up .fz-cc-dropdown {
  top: auto;
  bottom: calc(100% + 6px);
}

.cu-phone-cc-group .fz-cc-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.cu-phone-cc-group .fz-cc-search-wrap i {
  color: #888;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cu-phone-cc-group .fz-cc-search {
  border: none !important;
  outline: none !important;
  width: 100% !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  font-size: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.cu-phone-cc-group .fz-cc-list {
  max-height: 220px;
  overflow-y: auto;
}

.cu-phone-cc-group .fz-cc-item {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.cu-phone-cc-group .fz-cc-item:hover,
.cu-phone-cc-group .fz-cc-item.selected {
  background: #f5f8fc;
}

.cu-phone-cc-group .fz-cc-check {
  width: 20px;
  flex-shrink: 0;
  color: #002147;
}

.cu-phone-cc-group .fz-cc-dial {
  min-width: 46px;
  font-weight: 700;
  color: #002147;
}

.cu-phone-cc-group .fz-cc-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #555;
}

.cu-phone-cc-group .cu-phone-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.cu-phone-cc-group .invalid-feedback {
  flex-basis: 100%;
  width: 100%;
}

@media (max-width: 575.98px) {
  .cu-phone-cc-group .fz-cc-trigger,
  .cu-phone-cc-group .cu-phone-input {
    min-height: 48px;
  }

  .cu-phone-cc-group .cu-phone-input,
  .cu-phone-cc-group .fz-cc-search {
    font-size: 16px !important; /* avoid iOS zoom */
  }
}
