.phone-input-wrapper.pcp-enhanced #country-code-selector {
  display: none !important;
}

.phone-input-wrapper.pcp-enhanced #phone-number {
  min-width: 0;
}

.phone-input-wrapper .pcp-btn {
  position: relative;
  align-self: stretch;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0 8px 0 11px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #2c3e50;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  -webkit-appearance: none;
  appearance: none;
  opacity: 1;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrapper .pcp-btn:hover {
  opacity: 1;
}

.phone-input-wrapper .pcp-btn:focus-visible,
.phone-input-wrapper .pcp-btn.is-open {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.12);
}

.phone-input-wrapper .pcp-btn .pcp-flag {
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.phone-input-wrapper .pcp-btn .pcp-caret {
  font-size: 0.7rem;
  color: #6b7280;
  margin-left: 2px;
}

.phone-input-wrapper .pcp-btn .pcp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pcp-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  font-family: 'Noto Sans JP', sans-serif;
}

.pcp-root[hidden] {
  display: none;
}

.pcp-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.pcp-root--sheet .pcp-backdrop {
  background: rgba(0, 0, 0, 0.38);
}

.pcp-panel {
  position: fixed;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #fff;
  color: #2c3e50;
  overflow: hidden;
  outline: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.pcp-root--drop .pcp-panel {
  width: 340px;
  max-width: calc(100vw - 16px);
  border: 1px solid #ddd;
  border-radius: 10px;
}

.pcp-root--sheet .pcp-panel {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  height: 78vh;
  height: 78dvh;
  border: 0;
  border-radius: 16px 16px 0 0;
}

.pcp-grab {
  display: none;
  flex: none;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d1d5db;
  margin: 8px auto 2px;
}

.pcp-title {
  display: none;
  flex: none;
  position: relative;
  text-align: center;
  font-weight: 700;
  color: #2c3e50;
  padding: 8px 0 4px;
  font-size: 0.95rem;
}

.pcp-root--sheet .pcp-grab,
.pcp-root--sheet .pcp-title {
  display: block;
}

.pcp-close {
  position: absolute;
  right: 8px;
  top: 0;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.4;
  cursor: pointer;
  opacity: 1;
}

.pcp-close:hover {
  opacity: 1;
}

.pcp-search {
  flex: none;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.pcp-search input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #2c3e50;
  font: inherit;
  font-size: 16px;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}

.pcp-search input::placeholder {
  font-size: 13px;
}

.pcp-search input::-webkit-search-cancel-button {
  filter: grayscale(1);
}

.pcp-search input:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.12);
}

.pcp-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 300px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.pcp-root--sheet .pcp-list {
  max-height: none;
}

.pcp-head {
  margin: 0;
  padding: 8px 14px 4px;
  list-style: none;
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pcp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 14px;
  list-style: none;
  font-size: 0.9rem;
  color: #2c3e50;
  cursor: pointer;
}

.pcp-row.is-on {
  background: #f3f4f6;
  font-weight: 600;
}

.pcp-row.is-active {
  background: #eef0f3;
}

@media (hover: hover) {
  .pcp-row:hover {
    background: #eef0f3;
  }
}

.pcp-row[hidden],
.pcp-head[hidden],
.pcp-empty[hidden] {
  display: none;
}

.pcp-flag {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  white-space: nowrap;
}

.pcp-name {
  flex: 1 1 auto;
  min-width: 0;
}

.pcp-rowcc {
  flex: none;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.pcp-empty {
  flex: none;
  margin: 0;
  padding: 18px 16px;
  color: #6b7280;
  font-size: 0.9rem;
  white-space: pre-line;
}

.pcp-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
