/*
 * com_mediauploader public uploader — intentionally minimal.
 *
 * We deliberately set NO colours, backgrounds, borders, or fonts here so the
 * form inherits the host site's / template's own styling. Only layout and
 * spacing are defined, kept responsive (percentage / max-width based) so the
 * form fits whatever container it is dropped into.
 */

.mu-uploader {
    width: 100%;
    max-width: 100%;       /* fit the container it's placed in */
    box-sizing: border-box;
}

.mu-uploader .mu-form {
    width: 100%;
    box-sizing: border-box;
}

/* Spacing only — no colour/border/background, so the theme shows through. */
.mu-uploader .mu-field {
    margin-bottom: 1rem;
}

.mu-uploader .mu-uploader-note {
    font-size: .9em;
    opacity: .8;
    margin-bottom: 1rem;
}

.mu-uploader .mu-progress {
    margin: 1rem 0;
}

/* Keep inputs from overflowing narrow containers. */
.mu-uploader input[type="text"],
.mu-uploader input[type="email"],
.mu-uploader input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mu-uploader #mu-submit[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

/* Simple spinner for the "still working" state — uses currentColor so it
   matches whatever text colour the theme applies. */
.mu-uploader .mu-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: .5em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -.15em;
    animation: mu-spin .75s linear infinite;
}

@keyframes mu-spin {
    to { transform: rotate(360deg); }
}

.mu-uploader .mu-status {
    margin-top: .75rem;
}
