/* Keep contact details and identifiers in reading order in both languages. */
:is(input[type="email"], input[type="url"], input[type="tel"], input[dir="ltr"]) {
    direction: ltr;
    text-align: start;
}
html[dir="rtl"] input[data-localized-placeholder]:placeholder-shown {
    direction: rtl;
    text-align: start;
}
.clinic-credit { display: inline-block; }
.clinic-credit a { text-decoration: underline; text-underline-offset: .15em; }

.clinic-field-error {
    display: block;
    margin-block-start: .35rem;
    color: #a02c27;
    font-size: .875rem;
    font-weight: 600;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
    border-color: #b13d37;
}
.clinic-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .7rem;
    min-width: 0;
    margin-block-start: .35rem;
}
.clinic-file-picker {
    position: relative;
    display: inline-flex;
    max-width: 100%;
}
.clinic-file-caption {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .35rem .75rem;
    border: 1px solid #6f8b85; /* 3.68:1 on white: the visible boundary of the upload control (WCAG 1.4.11) */
    border-radius: .5rem;
    background: #fff;
    color: #124c45;
    font-size: .875rem;
    font-weight: 700;
}
.clinic-file-picker input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.clinic-file-picker:has(input:focus-visible) .clinic-file-caption {
    outline: 2px solid #167568;
    outline-offset: 2px;
}
.clinic-file-picker:has(input:hover) .clinic-file-caption {
    background: #eef7f4;
}
.clinic-file-picker:has(input[aria-invalid="true"]) .clinic-file-caption {
    border-color: #b13d37;
}
.clinic-file-status {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #516569;
    font-size: .875rem;
}

.clinic-password-toggle {
    display: inline-grid;
    place-items: center;
    min-inline-size: 44px;
    min-block-size: 44px;
    padding: .45rem;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-inline-start: 0;
    background: var(--bs-tertiary-bg, #f8f9fa);
    color: var(--bs-body-color, #212529);
}
.clinic-password-toggle:hover:not(:disabled) {
    background: var(--bs-secondary-bg, #e9ecef);
}
.clinic-password-toggle:focus-visible {
    z-index: 6;
    outline: 2px solid currentColor;
    outline-offset: -3px;
}
.clinic-password-toggle:disabled { opacity: .65; }
.clinic-password-toggle svg { inline-size: 1.125rem; block-size: 1.125rem; }
.clinic-password-toggle:not([data-visible]) .clinic-password-slash { display: none; }
