/* IBAN lookup tool: country chip, autocomplete, openiban opt-in CTA. */

.iban-country-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 0 0 10px 0;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    font-size: 0.95rem;
}

.iban-country-label {
    font-weight: 600;
    color: var(--c-ink);
}

.iban-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.iban-chip-sepa {
    background: rgba(0, 101, 192, 0.12);
    color: var(--c-blue);
    border: 1px solid rgba(0, 101, 192, 0.3);
}

.iban-bank-city {
    color: #64748b;
    font-weight: 400;
    font-size: 0.9em;
}

.iban-openiban-cta {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px dashed var(--c-line);
    border-radius: 8px;
    background: var(--c-bg);
}

.iban-openiban-note {
    margin: 8px 0 0 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
}

.iban-openiban-result {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--c-blue);
    border-radius: 8px;
    background: rgba(0, 101, 192, 0.04);
}

.iban-openiban-heading {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-blue);
}

/* Autocomplete dropdown */

.iban-field-with-suggestions {
    position: relative;
}

.iban-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    background: var(--c-bg-card);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.iban-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--c-line);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.iban-suggestion:last-child {
    border-bottom: 0;
}

.iban-suggestion:hover,
.iban-suggestion:focus {
    background: var(--c-bg);
    outline: none;
}

.iban-suggestion-abi {
    flex: 0 0 60px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
    color: var(--c-blue);
}

.iban-suggestion-name {
    flex: 1;
    color: var(--c-ink);
}
