/* Click-to-choose file panel (see FileDropField.jsx). */
.mc-file-drop {
    position: relative;
    width: 100%;
}

.mc-file-drop > input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.mc-file-drop-zone {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 18px 20px;
    border: 1.5px dashed var(--deepBorder);
    border-radius: 10px;
    background-color: var(--thinGray);
    cursor: pointer;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.mc-file-drop-zone:hover {
    border-color: var(--primaryHEX);
    box-shadow: 0 0 0 3px rgba(var(--primaryRGB), .12);
}

.mc-file-drop > input[type="file"]:focus-visible + .mc-file-drop-zone {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.mc-file-drop-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 24px;
    color: var(--primaryHEX);
    background-color: rgba(var(--primaryRGB), .12);
}

.mc-file-drop-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mc-file-drop-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    color: var(--headingColor);
}

.mc-file-drop-hint {
    font-size: 12px;
    color: var(--textColor);
    opacity: .75;
}

/* A chosen file: solid border, green file icon. */
.mc-file-drop.has-file .mc-file-drop-zone {
    border-style: solid;
    background-color: var(--cardBG);
}

.mc-file-drop.has-file .mc-file-drop-icon {
    color: rgb(var(--greenRGB));
    background-color: rgba(var(--greenRGB), .12);
}

.mc-file-drop.is-error .mc-file-drop-zone {
    border-color: var(--tone-danger-fg);
}

.mc-file-drop.is-disabled .mc-file-drop-zone {
    opacity: .6;
    cursor: not-allowed;
}
