/* Shortcuts that fill a person's details for you: the ID-card scan and the
   saved-people picker. They read as a toolbar above the fields, not as another
   card competing with them.

   This lives apart from insurance.css because the two home products (PAD and
   locuinta) are built on a compiled Tailwind bundle and cannot take the rest of
   insurance.css without their own styles fighting it. Every colour therefore
   carries a literal fallback: inside insurance.css pages the :root token wins,
   and on the Tailwind pages the fallback applies. */
.person-tools {
    margin: 0 0 12px;
}

.person-tools-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.person-chip {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--line, #dde3ea);
    border-radius: 99px;
    color: #344054;
    background: #fff;
    font-size: 0.83rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.person-chip svg {
    width: 17px;
    height: 17px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.person-chip:hover {
    border-color: #b3bcc8;
    background: #f7f8fa;
}

.person-chip-primary {
    border-color: rgba(185, 28, 28, 0.28);
    color: var(--brand-dark, #8f1515);
    background: var(--brand-soft, #fff1f2);
}

.person-chip-primary:hover {
    border-color: var(--brand, #b91c1c);
    background: #ffe4e6;
}

.person-chip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.person-tools-profile-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.person-tools-profile-row[hidden] {
    display: none;
}

.person-chip-select {
    min-height: 38px;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid var(--line, #dde3ea);
    border-radius: 99px;
    background: #fff;
    font-size: 0.83rem;
    font-weight: 700;
}

.person-chip-select:focus {
    border-color: var(--brand, #b91c1c);
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.11);
}

.person-tools-delete {
    flex: 0 0 auto;
    color: var(--danger, #b42318);
    font-size: 0.78rem;
}

.person-tools-save {
    margin-left: auto;
    font-size: 0.78rem;
}

.person-tools-note {
    margin-top: 7px;
    color: var(--muted, #5d6878);
    font-size: 0.79rem;
    line-height: 1.4;
}

.person-tools-status:not(:empty) {
    margin-top: 8px;
}

.person-tools-status {
    margin: 0;
    color: var(--muted, #5d6878);
    font-size: 0.78rem;
    font-weight: 650;
}

.person-tools-status[data-state="success"] {
    color: var(--success, #087443);
}

.person-tools-status[data-state="error"] {
    color: var(--danger, #b42318);
}

.person-tools-status[data-state="loading"] {
    color: var(--warning, #9a5800);
}

/* The component builds its own text buttons, so they travel with it. Buttons
   centre their text by default, which makes wrapped lines stagger. */
.person-tools .text-button {
    padding: 6px;
    border: 0;
    color: var(--brand, #b91c1c);
    background: transparent;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.person-tools .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
