/* Optional agreement-link, textarea-counter, and file-picker styles. */

.fmf-agreement__link {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.fmf-character-count {
    margin: 6px 0 0;
    color: #646970;
    font-size: 0.88em;
    text-align: right;
}

.fmf-character-count.is-under-minimum,
.fmf-character-count.is-over-maximum {
    color: #b32d2e;
    font-weight: 700;
}

.fmf-file-picker {
    display: inline-flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.fmf-file-picker__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.fmf-file-picker__button {
    appearance: none;
    display: inline-block;
    max-width: 100%;
    border: 1px solid #0087cb;
    border-radius: 5px;
    background: linear-gradient(to bottom, #12a8ef 0%, #008fd8 100%);
    box-shadow: 0 2px 0 rgba(0, 83, 128, 0.32);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.35;
    padding: 10px 16px;
    text-align: center;
    transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fmf-file-picker__button:hover {
    filter: brightness(1.05);
}

.fmf-file-picker__button:active {
    box-shadow: 0 1px 0 rgba(0, 83, 128, 0.28);
    transform: translateY(1px);
}

.fmf-file-picker__button:focus-visible {
    outline: 3px solid rgba(0, 149, 217, 0.32);
    outline-offset: 2px;
}

.fmf-file-picker.has-error .fmf-file-picker__button {
    border-color: #b32d2e;
    box-shadow: 0 0 0 2px rgba(179, 45, 46, 0.16);
}

.fmf-file-picker__status {
    flex-basis: 100%;
    margin: 0;
    color: #50575e;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .fmf-file-picker,
    .fmf-file-picker__button {
        width: 100%;
    }
}
