/* PhoneInput — país + número local */

.phone-input {
    position: relative;
    width: 100%;
}

.phone-input__row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.phone-input__country {
    position: relative;
    flex: 0 0 auto;
}

.phone-input__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2.625rem;
    min-width: 5.5rem;
    padding: 0 0.7rem;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    background: #fafafa;
    font-size: 0.875rem;
    font-weight: 600;
    color: #18181b;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.phone-input__trigger:hover {
    border-color: #a1a1aa;
    background: #fff;
}

.phone-input__trigger:focus-visible {
    outline: none;
    border-color: #02a504;
    box-shadow: 0 0 0 3px rgba(14, 143, 102, 0.18);
    background: #fff;
}

.phone-input__flag {
    font-size: 1.125rem;
    line-height: 1;
}

.phone-input__dial {
    font-variant-numeric: tabular-nums;
}

.phone-input__chevron {
    font-size: 0.625rem;
    color: #71717a;
    margin-left: 0.1rem;
}

.phone-input__chevron-svg {
    flex-shrink: 0;
    color: #71717a;
}

.phone-input__help--subtle {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #a1a1aa;
}

.phone-input--account .phone-input__trigger {
    min-width: 6.25rem;
    height: 2.5rem;
    padding: 0 0.65rem;
    border-radius: 10px;
    background: #fff;
}

.phone-input--account .phone-input__flag {
    font-size: 1.2rem;
}

.phone-input--account .phone-input__number {
    height: 2.5rem;
}

.phone-input--account .phone-input__row {
    gap: 0.4rem;
}

.phone-input__number {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.625rem;
    box-sizing: border-box;
}

.phone-input__number.input:focus {
    border-color: #02a504;
    box-shadow: 0 0 0 3px rgba(14, 143, 102, 0.18);
}

.phone-input__help {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #71717a;
}

.phone-input__panel {
    position: fixed;
    z-index: 200;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-height: 280px;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px -12px rgba(24, 24, 27, 0.28);
}

.phone-input__panel[hidden] {
    display: none !important;
}

.phone-input__search-wrap {
    flex-shrink: 0;
    padding: 0.5rem;
    border-bottom: 1px solid #f4f4f5;
}

.phone-input__search {
    width: 100%;
    box-sizing: border-box;
    height: 2.25rem;
    font-size: 0.8125rem;
}

.phone-input__list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    overflow-y: auto;
    max-height: 220px;
}

.phone-input__option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.12s;
}

.phone-input__option:hover {
    background: #f4f4f5;
}

.phone-input__option-flag {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.phone-input__option-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.phone-input__option-name {
    color: #18181b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-input__option-dial {
    color: #52525b;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.phone-input__empty {
    padding: 0.75rem;
    font-size: 0.8125rem;
    color: #71717a;
    text-align: center;
}

@media (max-width: 380px) {
    .phone-input__trigger {
        min-width: 4.75rem;
        padding: 0 0.5rem;
    }
}

