.suggest-wrap { position: relative; }

.suggest-box {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 50;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    max-height: 240px;
    overflow: auto;
}

.dark .suggest-box {
    background: #1f2937;
    border-color: #374151;
}

.suggest-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    cursor: pointer;
    color: inherit;
}

.suggest-item:hover,
.suggest-item.is-active {
    background: color-mix(in srgb, #0d9488 12%, transparent);
}

.suggest-meta {
    font-size: 0.8rem;
    opacity: 0.65;
}

.phone-field {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.phone-field__dial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #f8fafc;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
}

.phone-field__input {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0 10px 10px 0 !important;
}

.phone-field__flag {
    font-size: 1.1rem;
    line-height: 1;
}

.phone-field__code {
    font-weight: 600;
    white-space: nowrap;
}

.phone-field__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.55;
}

.phone-field__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 60;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.dark .phone-field__dropdown,
.dark .phone-field__dial {
    background: #1f2937;
    border-color: #374151;
}

.phone-field__search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    font: inherit;
    background: transparent;
    color: inherit;
}

.phone-field__options {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 240px;
    overflow: auto;
}

.phone-field__option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}

.phone-field__option:hover {
    background: color-mix(in srgb, #0d9488 12%, transparent);
}

.phone-field__name {
    min-width: 0;
}

.phone-field__dial-code {
    opacity: 0.7;
    white-space: nowrap;
}

.fi-input-wrp .phone-field,
.form-group .phone-field {
    width: 100%;
}

.fi-input-wrp .phone-field__input {
    border-radius: 0 10px 10px 0 !important;
}
