/*
 * Responsive.Forms — functional baseline styles.
 *
 * Deliberately minimal and namespaced (rf-*). Projects style the form to taste;
 * these rules just make the dropzone usable out of the box.
 *
 * Theming hooks (set on .rf-uploader or an ancestor) — use these rather than
 * overriding the rules directly, since this stylesheet is unlayered and would
 * otherwise beat a themed @layer rule regardless of specificity:
 *   --rf-drop-border    dashed drop-area border colour
 *   --rf-drop-over-bg   drop-area background while dragging over
 *   --rf-item-border    selected-file row border colour
 */

.rf-uploader__drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    text-align: center;
    border: 2px dashed var(--rf-drop-border, #cbd5e1);
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 0.85;
}

.rf-uploader__drop--over {
    opacity: 1;
    background: var(--rf-drop-over-bg, rgba(127, 127, 127, 0.08));
}

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

.rf-uploader__hint {
    font-size: 0.85em;
    opacity: 0.7;
}

.rf-uploader__list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.rf-uploader__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--rf-item-border, #d1d5db);
    border-radius: 0.375rem;
    margin-top: 0.4rem;
}

.rf-uploader__remove {
    flex: none;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
}

.rf-uploader__error {
    margin-top: 0.5rem;
    color: #b00020;
}

.rf-uploader__error:empty {
    display: none;
}

.rf-turnstile-warning {
    color: #b00020;
    font-size: 0.9em;
}
