.jans-upload-control {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jans-upload-label {
    font-weight: 800;
    color: #0f172a;
}

.jans-upload-input-row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.jans-upload-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 5.5rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px dashed #93c5fd;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    color: #0f172a;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.jans-upload-dropzone:hover:not(.is-disabled),
.jans-upload-dropzone:focus-within:not(.is-disabled) {
    border-color: #2563eb;
    background: linear-gradient(135deg, #dbeafe, #ffffff);
    transform: translateY(-1px);
}

.jans-upload-dropzone.is-disabled {
    cursor: not-allowed;
    opacity: 0.72;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.jans-upload-dropzone-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #1d4ed8;
    background: #ffffff;
    font-family: 'Material Symbols Outlined';
    font-size: 1.55rem;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.jans-upload-dropzone-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.jans-upload-dropzone-copy strong {
    color: #0f172a;
    font-weight: 850;
}

.jans-upload-dropzone-copy small {
    color: #64748b;
    font-weight: 650;
}

.jans-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.jans-upload-input:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.jans-upload-progress {
    height: 0.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.jans-upload-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    transition: width 180ms ease;
}

.jans-upload-legal-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
}

.jans-upload-legal-consent-input {
    appearance: none;
    position: relative;
    width: 2.65rem;
    height: 1.45rem;
    margin: 0.05rem 0 0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #e2e8f0;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.jans-upload-legal-consent-input::after {
    content: "";
    position: absolute;
    top: 0.17rem;
    left: 0.17rem;
    width: 1.02rem;
    height: 1.02rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
    transition: transform 160ms ease;
}

.jans-upload-legal-consent-input:checked {
    border-color: #2563eb;
    background: #2563eb;
}

.jans-upload-legal-consent-input:checked::after {
    transform: translateX(1.18rem);
}

.jans-upload-legal-consent-input:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.jans-upload-legal-consent-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    cursor: pointer;
    font-weight: 650;
    line-height: 1.35;
}

.jans-upload-legal-consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: #475569;
    font-weight: 600;
}

.jans-upload-legal-consent-separator {
    color: #94a3b8;
}

.jans-upload-hint,
.jans-upload-status,
.jans-upload-error {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.jans-upload-hint {
    color: #1d4ed8;
    background: #eff6ff;
}

.jans-upload-status {
    color: #166534;
    background: #dcfce7;
}

.jans-upload-error {
    color: #b91c1c;
    background: #fee2e2;
}

@media (min-width: 768px) {
    .jans-upload-input-row {
        flex-direction: row;
        align-items: center;
    }
}
