/* ── Phone field with country-code dropdown ── */
.cc-phone {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.cc-phone:focus-within {
    border-color: transparent;
    background: #fff;
    box-shadow: 0 0 0 2px #0c5c77;
}
.cc-phone .cc-native {
    position: absolute !important;
    width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
    overflow: hidden;
}
.cc-phone .cc-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    color: #111827;
}
.cc-phone .cc-input::placeholder { color: #9ca3af; }

/* Trigger button */
.cc-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 0 0.75rem 0 0.875rem;
    border: 0;
    border-right: 1px solid #e5e7eb;
    border-radius: 0.75rem 0 0 0.75rem;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0c5c77;
    cursor: pointer;
    transition: background .15s;
}
.cc-trigger:hover,
.cc-trigger[aria-expanded="true"] { background: rgba(12, 92, 119, .06); }
.cc-trigger:focus-visible { outline: none; background: rgba(12, 92, 119, .1); }
.cc-trigger .cc-chevron {
    width: 0.875rem; height: 0.875rem;
    color: #9ca3af;
    transition: transform .2s;
}
.cc-trigger[aria-expanded="true"] .cc-chevron { transform: rotate(180deg); color: #0c5c77; }

.cc-flag {
    width: 1.375rem; height: 1rem;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    background: #e5e7eb;
}

/* Dropdown panel (fixed so the modal's overflow:hidden never clips it) */
.cc-panel {
    position: fixed;
    z-index: 1000;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    box-shadow: 0 20px 40px -12px rgba(12, 92, 119, .28), 0 4px 12px rgba(0, 0, 0, .06);
    overflow: hidden;
    animation: ccFade .15s ease-out;
}
.cc-panel.is-open { display: flex; }
.cc-panel.is-above { animation-name: ccFadeUp; }
@keyframes ccFade   { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ccFadeUp { from { opacity: 0; transform: translateY(4px); }  to { opacity: 1; transform: none; } }

.cc-search-wrap {
    position: relative;
    padding: 0.625rem;
    border-bottom: 1px solid #f3f4f6;
}
.cc-search-wrap svg {
    position: absolute;
    left: 1.375rem; top: 50%;
    width: 1rem; height: 1rem;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.cc-search {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
    font-size: 0.8125rem;
    outline: none;
    transition: border-color .15s, background .15s;
}
.cc-search:focus { border-color: #0c5c77; background: #fff; }

.cc-list {
    max-height: 15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
}
.cc-list::-webkit-scrollbar { width: 6px; }
.cc-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.cc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #374151;
    cursor: pointer;
}
.cc-item .cc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-item .cc-code { color: #6b7280; font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-item .cc-check { width: 1rem; height: 1rem; color: #0c5c77; visibility: hidden; }
.cc-item.is-active { background: #f0f7fa; }
.cc-item.is-selected { color: #0c5c77; font-weight: 600; }
.cc-item.is-selected .cc-code { color: #0c5c77; }
.cc-item.is-selected .cc-check { visibility: visible; }
.cc-empty { padding: 1rem; text-align: center; font-size: 0.8125rem; color: #9ca3af; }
