.inquiry-area-code-wrap {
  position: relative;
  flex: 0 0 128px;
  max-width: 128px;
  width: 128px;
}

.inquiry-area-code-wrap .inquiry-area-code-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  min-height: 100%;
  padding: 12px 8px;
  border: 1px solid #b9c6d8;
  border-radius: 0;
  background: #fff;
  color: #0b1220;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}

.inquiry-area-code-wrap .inquiry-area-code-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background: #f8fafc;
}

.inquiry-area-code-wrap .inquiry-area-code-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.inquiry-area-code-wrap .inquiry-area-code-value.is-placeholder {
  color: #94a3b8;
}

.inquiry-area-code-wrap .inquiry-area-code-caret {
  flex: 0 0 auto;
  font-size: 12px;
  color: #64748b;
  line-height: 1;
}

.inquiry-area-code-wrap.is-open .inquiry-area-code-caret {
  transform: rotate(180deg);
}

.inquiry-area-code-wrap .inquiry-area-code-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1050;
  width: min(320px, 80vw);
  max-width: 80vw;
  background: #fff;
  border: 1px solid #b9c6d8;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  text-align: left;
}

.inquiry-area-code-wrap .inquiry-area-code-search {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  text-align: left;
}

.inquiry-area-code-wrap .inquiry-area-code-search:focus {
  box-shadow: inset 0 0 0 2px rgba(11, 79, 214, 0.16);
}

.inquiry-area-code-wrap .inquiry-area-code-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
  text-align: left;
}

.inquiry-area-code-wrap .inquiry-area-code-option {
  padding: 9px 12px;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.inquiry-area-code-wrap .inquiry-area-code-option:hover,
.inquiry-area-code-wrap .inquiry-area-code-option.is-active {
  background: #eef5ff;
  color: #0b4fd6;
}

.inquiry-area-code-wrap .inquiry-area-code-empty {
  padding: 12px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

.inquiry-phone-group .input-group {
  overflow: visible;
}

.inquiry-phone-group .input-group > .inquiry-area-code-wrap .inquiry-area-code-trigger {
  height: 100%;
}

/* Mobile bottom picker (Bootstrap Offcanvas) */
.inquiry-area-code-picker.offcanvas-bottom {
  height: min(78vh, 620px);
  max-height: 78vh;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  visibility: visible;
}

.inquiry-area-code-picker .offcanvas-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 10px;
  border-bottom: 1px solid #e8eef5;
}

.inquiry-area-code-picker .inquiry-area-code-picker-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.inquiry-area-code-picker .offcanvas-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
}

.inquiry-area-code-picker .offcanvas-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 16px;
  overflow: hidden;
  text-align: left;
}

.inquiry-area-code-picker .inquiry-area-code-search {
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  text-align: left;
}

.inquiry-area-code-picker .inquiry-area-code-search:focus {
  border-color: #0b4fd6;
  box-shadow: 0 0 0 3px rgba(11, 79, 214, 0.14);
}

.inquiry-area-code-picker .inquiry-area-code-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: left;
}

.inquiry-area-code-picker .inquiry-area-code-option {
  padding: 13px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}

.inquiry-area-code-picker .inquiry-area-code-option:last-child {
  border-bottom: 0;
}

.inquiry-area-code-picker .inquiry-area-code-option.is-active,
.inquiry-area-code-picker .inquiry-area-code-option:active {
  background: #eef5ff;
  color: #0b4fd6;
}

.inquiry-area-code-picker .inquiry-area-code-empty {
  padding: 24px 12px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

/* Fallback when Offcanvas API unavailable */
.inquiry-area-code-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.inquiry-area-code-picker-backdrop.is-show {
  opacity: 1;
  pointer-events: auto;
}

.inquiry-area-code-picker.is-fallback-show {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateY(0);
}

body.inquiry-area-code-picker-open {
  overflow: hidden;
}
